Exemple #1
0
 public UnitOfWork(ATMContext context)
 {
     this._context              = context;
     this.AccountRepository     = new Repository <Account>(this._context);
     this.UserRepository        = new Repository <User>(this._context);
     this.SiteContentRepository = new Repository <SiteContent>(this._context);
     this.CardRepository        = new Repository <Card>(this._context);
 }
Exemple #2
0
 public Repository(ATMContext context)
 {
     this._context = context;
 }