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.9.0.0 (5.9.0)
Syntax public virtual IEntity2 Get(
IEntity2 toCheck
)
Public Overridable Function Get (
toCheck As IEntity2
) As IEntity2
Parameters
- toCheck
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
entity to check
Return Value
Type:
IEntity2an 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