Click or drag to resize

IEntitySave Method (Boolean)

Saves the Entity class to the persistent storage. It updates or inserts the entity, which depends if the entity was originally read from the database. Uses, if applicable, the ConcurrencyPredicateFactory to supply the predicate to limit save activity.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
bool Save(
	bool recurse
)

Parameters

recurse
Type: SystemBoolean
When true, it will save all dirty objects referenced (directly or indirectly) by this entity also.

Return Value

Type: Boolean
true if Save succeeded, false otherwise
Exceptions
ExceptionCondition
ORMQueryExecutionExceptionWhen an exception is caught during the save process. The caught exception is set as the inner exception. Encapsulation of database-related exceptions is necessary since these exceptions do not have a common exception framework implemented.
See Also