public DbRepository(ITicketingSystemDbContext context) { if (context == null) { throw new ArgumentNullException("context", "An instance of ITicketingSystemDbContext is required to use this repository."); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public TicketingSystemData(ITicketingSystemDbContext context) { if (context == null) { throw new ArgumentNullException("context", "An instance of ITicketingSystemDbContext is required."); } this.context = context; this.repositories = new Dictionary <Type, object>(); }