public RepositoryBase(AmsDbContext context) { lock (context) { dbContext = context; dbSet = context.Set <T>(); } }
public AmsDbContext Init() { return(dbContext ?? (dbContext = new AmsDbContext())); }
public UnitOfWork(AmsDbContext context) { this.context = context; }
public UnitOfWork() { this.context = new AmsDbContext(); }