Beispiel #1
0
 public LibraryManagerRepositories(LibraryManagerDB context)
 {
     Context   = context;
     Users     = new UserRepository(Context);
     Libraries = new LibraryManagerRepository <Library>(Context);
     Books     = new LibraryManagerRepository <Book>(Context);
     Authors   = new LibraryManagerRepository <Author>(Context);
     Roles     = new RoleRepository(Context);
     Loans     = new LibraryManagerRepository <Loan>(Context);
     Media     = new LibraryManagerRepository <Media>(Context);
     UserRoles = new UserRoleRepository(Context);
 }
Beispiel #2
0
 public UserRepository(LibraryManagerDB context) : base(context)
 {
 }
 public RoleRepository(LibraryManagerDB context) : base(context)
 {
 }