/// <summary> /// Creates a new instance of <see cref="GenericRepository{TEntity}"/> /// </summary> /// <param name="context">Context</param> public GenericRepository(SmogDetectorModel context) { Context = context; DbSet = context.Set <TEntity>(); }
/// <summary> /// Creates a new instance of <see cref="GenericRepository{TEntity}"/> /// </summary> public GenericRepository() { Context = new SmogDetectorModel(); DbSet = Context.Set <TEntity>(); }