public UnitOfWork(GalleryAppContext context)
 {
     this.context = context;
     Arts         = new ArtRepository(context);
     Artists      = new ArtistRepository(context);
     Categories   = new CategoryRepository(context);
     Contacts     = new ContactRepository(context);
     Quotes       = new QuotesRepository(context);
 }
 public DbDeletableRepository(GalleryAppContext context)
     : base(context)
 {
     this.context = context;
 }
Exemple #3
0
 public DbRepository(GalleryAppContext context)
 {
     this.context = context;
 }