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. Will not recursively save internal dirty entities.
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.4.0.0 (5.4.0)
Syntax Public Function Save As Boolean
Return Value
Type:
Booleantrue if all changed fields were successfully persisted to the database, false otherwise
Implements
IEntitySaveExceptions Exception | Condition |
---|
ORMQueryExecutionException | When 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