UnitOfWork2AddForSave Method (IEntity2, Boolean) |
Adds the passed in entity for saving.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax public bool AddForSave(
IEntity2 entityToSave,
bool refetch
)
Public Function AddForSave (
entityToSave As IEntity2,
refetch As Boolean
) As Boolean
Parameters
- entityToSave
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
The entity to save via this unit of work - refetch
- Type: SystemBoolean
When true, it will refetch the entity saved after the save action.
Return Value
Type:
Booleantrue if the entity is accepted, false if the entity is rejected (already added for a similar action)
See Also