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