Esempio n. 1
0
        public GenericRepository(IChooseMeDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of DbContext is required to use this repository.", "context");
            }

            this.Context = context;
            this.DbSet   = this.Context.Set <T>();
        }
Esempio n. 2
0
 public AdopterService(IRepository<Adopter> adopters, IChooseMeDbContext dbContext)
 {
     this.adopters = adopters;
     this.dbContext = dbContext;
 }
Esempio n. 3
0
 public AdopterService(IRepository <Adopter> adopters, IChooseMeDbContext dbContext)
 {
     this.adopters  = adopters;
     this.dbContext = dbContext;
 }