示例#1
0
 public virtual void AddCategory(PartyCategory newInstance)
 {
     //foreach (PartyCategory a in this.Categories)
     //{
     //    if (a.CategoryRoot.NodeID == newInstance.CategoryRoot.NodeID)
     //    {
     //        //expire the existing one
     //        if (a.EffectivePeriod.To >= newInstance.EffectivePeriod.From)
     //            a.EffectivePeriod.To = newInstance.EffectivePeriod.From.Date.AddDays(-1);
     //    }
     //}
     this.Categories.Add(newInstance);
 }
示例#2
0
 public PartyCategory(PartyCategory original, User user)
     : base(original, user)
 {
 }