Use the discriminator, to narrow the select to instances of the queried subclass, also applying any filters.

Namespace:  NHibernate.Loader.Criteria
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Protected Overrides ReadOnly Property WhereFragment As SqlString
C#
protected override SqlString WhereFragment { get; }
Visual C++
protected:
virtual property SqlString^ WhereFragment {
	SqlString^ get () override;
}
JavaScript
function get_whereFragment();

See Also