UnitOfWorkAddForSave Method (IEntity, 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.4.0.0 (5.4.0)
Syntax public bool AddForSave(
IEntity entityToSave,
bool recurse
)
Public Function AddForSave (
entityToSave As IEntity,
recurse As Boolean
) As Boolean
Parameters
- entityToSave
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
The entity to save via this unit of work - recurse
- Type: SystemBoolean
When true, it will save all dirty objects referenced (directly or indirectly) by this entity also.
Return Value
Type:
Booleantrue if the entity is accepted, false if the entity is rejected (already added for a similar action)
See Also