コード例 #1
0
        public ArticleService()
        {
            var context = new DAL.EF.LibraryContext();

            _authorInArticleRepository  = new AuthorInArticleRepository(context);
            _articleInJournalRepository = new ArticleInJournalRepository(context);
        }
コード例 #2
0
        public JournalService()
        {
            var context = new DAL.EF.LibraryContext();

            _articleInjournalRepository = new ArticleInJournalRepository(context);
            _journalRepository          = new JournalRepository(context);
        }
コード例 #3
0
        public AuthorService()
        {
            var context = new DAL.EF.LibraryContext();

            _authorInBookRepository = new AuthorInBookRepository(context);
            _authorRepository       = new AuthorRepository(context);
            _bookRepository         = new BookRepository(context);
        }