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