// Results // Business constructor public ActivityDefinition__ordinal( ActivityDefinition activityDefinition ,IEnumerable<ActivityDefinition__ordinal> prior ,int value ) { InitializeResults(); _activityDefinition = new PredecessorObj<ActivityDefinition>(this, GetRoleActivityDefinition(), activityDefinition); _prior = new PredecessorList<ActivityDefinition__ordinal>(this, GetRolePrior(), prior); _value = value; }
public CorrespondenceFact CreateFact(FactMemento memento) { ActivityDefinition newFact = new ActivityDefinition(memento); // Create a memory stream from the memento data. using (MemoryStream data = new MemoryStream(memento.Data)) { using (BinaryReader output = new BinaryReader(data)) { newFact._identifier = (string)_fieldSerializerByType[typeof(string)].ReadData(output); } } return newFact; }
// Results // Business constructor public ActivityDefinition__description( ActivityDefinition activityDefinition ,IEnumerable<ActivityDefinition__description> prior ,string value ) { InitializeResults(); _activityDefinition = new PredecessorObj<ActivityDefinition>(this, GetRoleActivityDefinition(), activityDefinition); _prior = new PredecessorList<ActivityDefinition__description>(this, GetRolePrior(), prior); _value = value; }
// Business constructor public ActivityReward( ActivityDefinition definition ,Quarter quarter ) { InitializeResults(); _definition = new PredecessorObj<ActivityDefinition>(this, GetRoleDefinition(), definition); _quarter = new PredecessorObj<Quarter>(this, GetRoleQuarter(), quarter); }