Click or drag to resize
UnitOfWorkAddForSave Method (IEntity, IPredicate, 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.3.0)
public virtual bool AddForSave(
	IEntity entityToSave,
	IPredicate restriction,
	bool recurse


Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
The entity to save via this unit of work
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Filter to apply during save (ignored when the entity is new). This restriction will be AND-ed with the restriction constructed by a ConcurrencyPredicateFactory instance in entityToSave (if applicable).
Type: SystemBoolean
When true, it will save all dirty objects referenced (directly or indirectly) by this entity also.

Return Value

Type: Boolean
true if the entity is accepted, false if the entity is rejected (already added for a similar action)
See Also