With the new Domain Model in Q2 version, how do you control transaction?
I created a new test project with an existing database and the new Domain Model does not have ObjectScope provider, so how do you start, commit, rollback changes in the transaction? Where is the dispose function for the data model context?
For example, how do you rollback after an error in an edit action, such as:
var dataModel = DbContextFactory.GetContextPerRequest(
var inID = Convert.ToInt32(TestID.Text);
var tests = from t
dataModel.Tests where t.TestID == inID select t;
var entity = tests.First();