示例#1
0
        public AuthorService()
        {
            var context = new DAL.EF.LibraryContext();

            _authorInBookRepository = new AuthorInBookRepository(context);
            _authorRepository       = new AuthorRepository(context);
            _bookRepository         = new BookRepository(context);
        }
示例#2
0
 public AuthorService(AuthorRepository authorRepository, AuthorInBookRepository authorInBookRepository)
 {
     _authorRepository       = authorRepository;
     _authorInBookRepository = authorInBookRepository;
 }
示例#3
0
 public BookService(BookRepository bookRepository, AuthorInBookRepository authorInBookRepository, PublicHouseInBookRepository publicHouseInBookRepository)
 {
     _bookRepository              = bookRepository;
     _authorInBookRepository      = authorInBookRepository;
     _publicHouseInBookRepository = publicHouseInBookRepository;
 }