示例#1
0
 public bool Add(Subscriber aggregate)
 {
     using (var db = new DomainModelFacade())
     {
         db.Subscribers.Add(aggregate);
         return db.SaveChanges() > 0;
     }
 }
示例#2
0
 public bool Add(Subscriber aggregate)
 {
     using (var db = new CommandModelDatabase())
     {
         db.Subscribers.Add(aggregate);
         return db.SaveChanges() > 0;
     }
 }
示例#3
0
 public bool Delete(Subscriber aggregate)
 {
     throw new System.NotImplementedException();
 }