Click or drag to resize
DataAccessAdapterCore.FetchEntityUsingUniqueConstraint Method (IEntity2, IPredicateExpression, Context)
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.0.0.0 (5.0.0)
Syntax
public bool FetchEntityUsingUniqueConstraint(
	IEntity2 entityToFetch,
	IPredicateExpression uniqueConstraintFilter,
	Context contextToUse
)

Parameters

entityToFetch
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntity2
The entity object in which the fetched entity data will be stored.
uniqueConstraintFilter
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPredicateExpression
The filter which should filter on fields with a unique constraint.
contextToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.Context
The context to add the entity to if the fetch was succesful.

Return Value

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

Implements

IDataAccessAdapter.FetchEntityUsingUniqueConstraint(IEntity2, IPredicateExpression, Context)
See Also