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 OrderRepository CreateOrderRepository(ReaderRepository readerRepository, BookRepository bookRepository,
                                              LibraryDepartmentRepository libraryDepartmentRepository, LibrarianRepository librarianRepository)
 {
     return(new OrderMSSQLRepository(readerRepository, bookRepository, libraryDepartmentRepository, librarianRepository, context));
 }