|ContextGet Method (IEntity)|
The passed in entity is checked if the contained data is already in this / a context in another entity object.
If that's the case, that entity object is returned. If the data is not in this context in another entity object,
the passed in entity is returned and added to this context.
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 184.108.40.206 (5.3.0)
public virtual IEntity Get(
Public Overridable Function Get (
toCheck As IEntity
) As IEntity
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
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.
SelfServicing specific version.