Ejemplo n.º 1
0
        public OrderMSSQLRepository(ReaderRepository readerRepository, BookRepository bookRepository,
                                    LibraryDepartmentRepository libraryDepartmentRepository, LibrarianRepository librarianRepository,
                                    LibraryDataContext context)
        {
            this.readerRepository            = readerRepository;
            this.bookRepository              = bookRepository;
            this.libraryDepartmentRepository = libraryDepartmentRepository;
            this.librarianRepository         = librarianRepository;

            this.context = context;
        }
Ejemplo n.º 2
0
        public LibrarianMSSQLRepository(LibraryDepartmentRepository libraryDepartmentRepository, LibraryDataContext context)
        {
            this.libraryDepartmentRepository = libraryDepartmentRepository;

            this.context = context;
        }
Ejemplo n.º 3
0
 public LibrarianRepository CreateLibrarianRepository(LibraryDepartmentRepository libraryDepartmentRepository)
 {
     return(new LibrarianMSSQLRepository(libraryDepartmentRepository, context));
 }
Ejemplo n.º 4
0
 public OrderRepository CreateOrderRepository(ReaderRepository readerRepository, BookRepository bookRepository,
                                              LibraryDepartmentRepository libraryDepartmentRepository, LibrarianRepository librarianRepository)
 {
     return(new OrderMSSQLRepository(readerRepository, bookRepository, libraryDepartmentRepository, librarianRepository, context));
 }
Ejemplo n.º 5
0
 public BookRepository CreateBookRepository(LibraryDepartmentRepository libraryDepartmentRepository)
 {
     return(new BookMSSQLRepository(libraryDepartmentRepository, context));
 }