|ContextGet Method (IEntity2)|
The passed in entity is checked if the contained data is already in this / a context in another entity object.
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 184.108.40.206 (5.3.0)
public virtual IEntity2 Get(
Public Overridable Function Get (
toCheck As IEntity2
) As IEntity2
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
entity to check
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.
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