Click or drag to resize

IDataAccessAdapterFetchEntityUsingUniqueConstraint Method (IEntity2, IPredicateExpression, IPrefetchPath2)

Fetches an entity from the persistent storage into the object specified using the filter specified. Use the entity's uniqueconstraint filter construction methods to construct the required uniqueConstraintFilter for the unique constraint you want to use.

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
bool FetchEntityUsingUniqueConstraint(
	IEntity2 entityToFetch,
	IPredicateExpression uniqueConstraintFilter,
	IPrefetchPath2 prefetchPath
)

Parameters

entityToFetch
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
The entity object in which the fetched entity data will be stored.
uniqueConstraintFilter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicateExpression
The filter which should filter on fields with a unique constraint.
prefetchPath
Type: SD.LLBLGen.Pro.ORMSupportClassesIPrefetchPath2
The prefetch path to use for this fetch, which will fetch all related entities defined by the path as well.

Return Value

Type: Boolean
true if the Fetch was succesful, false otherwise
See Also