예제 #1
0
 // 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;
 }
예제 #2
0
            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;
            }
예제 #3
0
 // 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;
 }
예제 #4
0
 // Business constructor
 public ActivityReward(
     ActivityDefinition definition
     ,Quarter quarter
     )
 {
     InitializeResults();
     _definition = new PredecessorObj<ActivityDefinition>(this, GetRoleDefinition(), definition);
     _quarter = new PredecessorObj<Quarter>(this, GetRoleQuarter(), quarter);
 }