Saves all changes (updates, inserts, deletes) made on a data set in a single transaction.
The concurrency model is optimistic which means, the transaction succeeds if the data to save was not altered in the datastore in the meantime.
Namespace: Aspectize.CoreAssembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
void SaveTransactional() |
| Visual Basic |
|---|
Sub SaveTransactional |
Examples
AdventureWorks.Production.Product product = dm.GetEntity<AdventureWorks.Production.Product>(1); product.Color = "NewColor"; dm.SaveTransactional();
Dim product As AdventureWorks.Production.Product = dm.GetEntity(Of AdventureWorks.Production.Product)(1) product.Color = "NewColor" dm.SaveTransactional()