IDataAccessAdapterFetchNewEntity Method (IEntityFactory2, IRelationPredicateBucket) |
Fetches a new entity using the filter/relation combination filter passed in via filterBucket and the new entity is created using the
passed in entity factory. Use this method when fetching a related entity using a current entity (for example, fetch the related Customer entity
of an existing Order entity)
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax IEntity2 FetchNewEntity(
IEntityFactory2 entityFactoryToUse,
IRelationPredicateBucket filterBucket
)
Function FetchNewEntity (
entityFactoryToUse As IEntityFactory2,
filterBucket As IRelationPredicateBucket
) As IEntity2
Parameters
- entityFactoryToUse
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFactory2
The factory which will be used to create a new entity object which will be fetched - filterBucket
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationPredicateBucket
the completely filled in IRelationPredicateBucket object which will be used as a filter for the fetch. The fetch
will only load the first entity loaded, even if the filter results into more entities being fetched
Return Value
Type:
IEntity2The new entity fetched.
See Also