コード例 #1
0
ファイル: NewsService.cs プロジェクト: Alerter000/NewsBlog
 public NewsService(NewsBlogDatabase db)
 {
     if (db == null)
         throw new ArgumentException(ERROR_OPEN_DATABASE);
     _database = db;
 }
コード例 #2
0
ファイル: UserRepository.cs プロジェクト: Alerter000/NewsBlog
 public UserRepository(NewsBlogDatabase db)
 {
     if (db == null)
         throw new ArgumentException(ERROR_OPEN_DATABASE);
     _database = db;
 }
コード例 #3
0
ファイル: UnitOfWork.cs プロジェクト: Alerter000/NewsBlog
 public UnitOfWork()
 {
     _database = new NewsBlogDatabase();
 }