Click or drag to resize

ContextGet Method

Overload List
  NameDescription
Public methodGet(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.
Public methodGet(IEntity2)
The passed in entity is checked if the contained data is already in this / a context in another entity object.
Public methodGet(IEntityFactory, Object)
Tries to find an entity with the same PK values as passed in. The PK values have to be in the same order as they appear in the constructor of the entity. If an entity in the context has the same PK values, that entity is returned, otherwise a new entity is returned, created with the factory passed in, with its PK values initialized, though not fetched.
Public methodGet(IEntityFactory2, Object)
Tries to find an entity with the same PK values as passed in. The PK values have to be in the same order as they appear in the constructor of the entity. If an entity in the context has the same PK values, that entity is returned, otherwise a new entity is returned, created with the factory passed in, with its PK values initialized, though not fetched.
Top
See Also