コード例 #1
0
 public Aggregation GetParent()
 {
     if (_parent == null)
     {
         AggregationRepo repo = new AggregationRepo();
         _parent = repo.GetOne(ParentName);
         if (_parent == null)
         {
             throw new ParentNotFoundException();
         }
         repo.Dispose();
     }
     return(_parent);
 }
コード例 #2
0
        public void SetParent(Aggregation value)
        {
            AggregationRepo repo = new AggregationRepo();

            this.ParentName = value.Id;
        }