Click or drag to resize

DaoBaseFetchExistingPolymorphic Method

Performs the polymorphic entity fetch for the entity type of this DAO. It will produce an entity of that type or a subtype of that type, based on the values retrieved, or an empty entity if not found. The passed in fields object has its PK fields filled, which are used to produce a PK filter.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
public IEntity FetchExistingPolymorphic(
	ITransaction containingTransaction,
	IEntityFields fields,
	Context contextToUse,
	ExcludeIncludeFieldsList excludedIncludedFields
)

Parameters

containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
Containing transaction.
fields
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
Fields required for PK construction
contextToUse
Type: SD.LLBLGen.Pro.ORMSupportClassesContext
Context to use for fetch
excludedIncludedFields
Type: SD.LLBLGen.Pro.ORMSupportClassesExcludeIncludeFieldsList
The list of IEntityField objects which have to be excluded or included for the fetch. If null or empty, all fields are fetched (default). If an instance of ExcludeIncludeFieldsList is passed in and its ExcludeContainedFields property is set to false, the fields contained in excludedIncludedFields are kept in the query, the rest of the fields in the query are excluded.

Return Value

Type: IEntity
New entity with the data filtered by the passed in PK filter, or an empty entity if not found. Entity can be of type produced by the set entity factory (which produces entities of the type this DAO is for) or a subtype.

Implements

IDaoFetchExistingPolymorphic(ITransaction, IEntityFields, Context, ExcludeIncludeFieldsList)
See Also