public RepositoryService() { context = new XMovieContext(); movieRepository = new MovieRepository(context); tagRepository = new TagRepository(context); tagMapRepository = new TagMapRepository(context); thumbnailRepository = new ThumbnailRepository(context); tagCategoryRepository = new TagCategoryRepository(context); }
private bool disposedValue = false; // 重複する呼び出しを検出するには protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { // TODO: マネージ状態を破棄します (マネージ オブジェクト)。 } // TODO: アンマネージ リソース (アンマネージ オブジェクト) を解放し、下のファイナライザーをオーバーライドします。 // TODO: 大きなフィールドを null に設定します。 if (context != null) { context.Dispose(); context = null; } disposedValue = true; } }