WorkItem Object Mapper

 

COR6

Page history last edited by Bernardo Heynemann 3 yrs ago

WOM Project Home Page / Documentation / Requirements / COR6

 

Support multiple transactions

 

Requirement Number: COR6

Module: WOM Core

Name: Support multiple transactions

Description:

This requirement states that the Manager structure should support multiple transactions.

The following scenario should be enabled:

Example:

TaskManager tm = new TaskManager();

tm.BeginTransaction();

Task t = new Task();

t.Title = "Title Task";

//... set other properties.

tm.Save(t); //The task is not saved yet.

tm.Commit(); //Only now the task is saved.

 

This kind of transaction support enables this following scenario:

Example:

TaskManager tm = new TaskManager();

tm.BeginTransaction();

Task t = new Task();

t.Title = "Title Task";

//... set other properties.

tm.Save(t); //The task is not saved yet.

 

//Since we pass the TaskManager as parameter, we use the same transaction

IssueManager im = new IssueManager(tm);

Issue i = new Issue();

i.Title = "Title Issue";

//... set other properties.

im.Save(i);

 

Commit(); //At this point the task is saved, and then the Issue is saved.

 

Start Iteration: Iteration 0.01 End Iteration: Iteration 0.01

Implemented: Yes

Check it out on CodePlex!

Comments (0)

You don't have permission to comment on this page.