Exemplo n.º 1
0
        public Repository(AgeRangerDbContext dbContext)
        {
            //initialize db context
            Context = dbContext;

            // Configures current entity DB Set which is being manipulated
            DbSet = dbContext.Set <Entity>();
        }
Exemplo n.º 2
0
 public UnitOfWork(AgeRangerDbContext context)
 {
     this._context = context;
 }