public GenericRepository(LibraryContext context)
 {
     this._context = context;
     entities = context.Set<TEntity>();
 }
예제 #2
0
 public Repository(LibraryContext libraryContext)
 {
     _libraryContext = libraryContext;
     entities        = libraryContext.Set <TEntity>();
 }