/// <summary>
 ///     Initializes a new instance of the <see cref="GenericRepository{T}" /> class.
 /// </summary>
 /// <param name="context">The context for the repository</param>
 public GenericRepository(OnADifferentNoteDbEntities context)
 {
     _context = context;
     _dbSet   = _context.Set <T>();
 }
예제 #2
0
 public UnitOfWork()
 {
     _context = new OnADifferentNoteDbEntities();
 }