WOM Project Home Page / Documentation / Requirements / COR2
Allow Inheritance Mapping
Requirement Number: COR2
Module: WOM Core
Name: Allow Inheritance Mapping
Description:
This requirement states that it must be possible for the user to define one base workitem and then create several derived classes that are differentiated by one property.
Example:
- public class DefaultWorkItem : WorkItem {
- }
- [PrimaryKey("WorkItemType", typeof(WorkItemType), (int)WorkItemType.Task)]
- [WorkItemType("Work Item")]
- public class Task : WorkItemBase {
- public Task() : base() { }
- public Task(int ID) : base(ID) { }
- }
- [PrimaryKey("WorkItemType", typeof(WorkItemType), (int)WorkItemType.Issue)]
- [WorkItemType("Work Item")]
- public class Issue : WorkItemBase {
- public Issue() : base() { }
- public Issue(int ID) : base(ID) { }
- }
The attribute that defines the inheritance is the PrimaryKey attribute.
The object definition above should be supported for Retrieval, Create and Updates as of this iteration, and this requirement states that kind of support.
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.