示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepository{T}"/> class.
 /// </summary>
 /// <param name="_context">The context.</param>
 public BaseRepository(AutoBoardDBContext _context)
 {
     this._context = _context;
     table         = _context.Set <T>();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepository{T}"/> class.
 /// </summary>
 public BaseRepository()
 {
     this._context = new AutoBoardDBContext();
     table         = _context.Set <T>();
 }