DataScopeCommitChanges Method (FuncIUnitOfWorkCore, Boolean) |
Commits the changes tracked by this scope using the passed in commit func. Use this method to commit the changes using logic outside
this scope, e.g. a service or another tier, to which the unit of work object passed into the commitUnitOfWork func is transported.
To commit the changes directly using a transaction provider by a transaction controller (Adapter: a DataAccessAdapter, SelfServicing: a
Transaction object), please use the CommitChanges overload which accepts a transaction controller.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax public bool CommitChanges(
Func<IUnitOfWorkCore, bool> commitUnitOfWorkFunc
)
Public Function CommitChanges (
commitUnitOfWorkFunc As Func(Of IUnitOfWorkCore, Boolean)
) As Boolean
Parameters
- commitUnitOfWorkFunc
- Type: SystemFuncIUnitOfWorkCore, Boolean
The func which is called to commit the work in the Unit of work which is passed into the func by
CommitChanges.
Return Value
Type:
Booleanthe result returned by commitUnitOfWorkFunc after it gets called with the Unit of Work to commit
See Also