/// <summary> /// Initializes a new instance of the <see cref="Repository{T}"/> class. /// </summary> /// <param name="context">context</param> public Repository(FundsContext context) { this.context = context; this.dbSet = this.context.Set <T>(); }
/// <summary> /// Initializes a new instance of the <see cref="Repository{T}"/> class. /// </summary> public Repository() { this.context = new FundsContext(); this.dbSet = this.context.Set <T>(); this.dbSet.Load(); }
/// <summary> /// Constructor by default /// </summary> public UnitOfWork() { this.context = new FundsContext(); }
/// <summary> /// Constructor with paramethr /// </summary> /// <param name="context">context</param> public UnitOfWork(FundsContext context) { this.context = context; }
public FundsController(FundsContext fundsContext) { this.fundsContext = fundsContext; }