Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserRepository"/> class.
 /// </summary>
 /// <param name="context">context.</param>
 public UserRepository(ReadBooksContext context)
 {
     this.db = context;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EFUnitOfWork"/> class.
 /// </summary>
 public EFUnitOfWork()
 {
     this.db = new ReadBooksContext();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StatisticRepository"/> class.
 /// </summary>
 /// <param name="context">context.</param>
 public StatisticRepository(ReadBooksContext context)
 {
     this.db = context;
 }