示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnitOfWork"/> class.
 /// </summary>
 public UnitOfWork()
 {
     _context = new AlmohamiContext();
 }
示例#2
0
 public Repository(AlmohamiContext context)
 {
     _context = context;
     _dbSet   = context.Set <T>();
 }