示例#1
0
 public Repository(IAlbumDbContext context)
 {
     Entities = context.Set <TEntity>();
 }
示例#2
0
 public UnitOfWork(IAlbumDbContext albumDbContext)
 {
     _albumDbContext   = albumDbContext;
     PictureRepository = new Repository <Picture>(albumDbContext);
     UserRepository    = new Repository <User>(albumDbContext);
 }