예제 #1
0
    } // CreateOutcomeFramework

    public OutcomeFramework UpdateOutcomeFramework(Guid guid, OutcomeFramework update) {
      OutcomeFramework of = OutcomeFramework(guid);
      if (of == null)
        return null;

      of.CopyFrom(update);
      Commit(of);

      return of;
    } // UpdateOutcomeFramework
예제 #2
0
    } // OutcomeFramework 
    
    public OutcomeFramework CreateOutcomeFramework(OutcomeFramework newOF) {
      OutcomeFramework of = new OutcomeFramework();
      of.Id = Guid.NewGuid();
      of.CopyFrom(newOF);

      context.OutcomeFrameworks.Add(of);
      Commit();

      return of;
    } // CreateOutcomeFramework
예제 #3
0
 public void CopyFrom(OutcomeFramework other) {
   Title = other.Title;
   Description = other.Description;
   OwningOrganisation = other.OwningOrganisation;
 } // CopyFrom