Click or drag to resize

DaoBase.FetchExisting Method

Reads the data of an entity into the specified EntityFields object and returns that object. Which data is read is determined using the passed in Primary Key field(s). If specified, it also processes the prefetch path.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public void FetchExisting(
	IEntity entityToFetch,
	ITransaction containingTransaction,
	IPrefetchPath prefetchPathToUse,
	Context contextToUse,
	ExcludeIncludeFieldsList excludedIncludedFields
)

Parameters

entityToFetch
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntity
The entity to fetch. Contained data will be overwritten.
containingTransaction
Type: SD.LLBLGen.Pro.ORMSupportClasses.ITransaction
A containing transaction, if caller is added to a transaction, or null if not.
prefetchPathToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPath
the PrefetchPath which defines the graph of objects to fetch.
contextToUse
Type: SD.LLBLGen.Pro.ORMSupportClasses.Context
The context to fetch the prefetch path with.
excludedIncludedFields
Type: SD.LLBLGen.Pro.ORMSupportClasses.ExcludeIncludeFieldsList
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.

Implements

IDao.FetchExisting(IEntity, ITransaction, IPrefetchPath, Context, ExcludeIncludeFieldsList)
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen fieldsToFetch is null
See Also