Click or drag to resize
ContextGet Method (IEntity2)
The passed in entity is checked if the contained data is already in this / a context in another entity object.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public virtual IEntity2 Get(
	IEntity2 toCheck
)

Parameters

toCheck
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
entity to check

Return Value

Type: IEntity2
an already loaded entity with the same data, or the passed in entity if the data hasn't been loaded in another entity in this context or the entity passed in is new or the existing entity is deleted and its transaction has been completed.
Remarks
if toCheck is new, it is added to the new entities pool (if not already present) and its context is set to this instance. New entities aren't yet added to the context until they're saved. A new entity passed in is returned as well. Adapter specific version
See Also