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.Core
Assembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
void SaveTransactional()
Visual Basic
Sub SaveTransactional

Examples

CopyC#
AdventureWorks.Production.Product product = dm.GetEntity<AdventureWorks.Production.Product>(1);

product.Color = "NewColor";

dm.SaveTransactional();
CopyVB.NET
Dim product As AdventureWorks.Production.Product = dm.GetEntity(Of AdventureWorks.Production.Product)(1)

product.Color = "NewColor"

dm.SaveTransactional()

See Also