コード例 #1
0
 public void Dispose()
 {
     if (this.database != null)
     {
         this.database.Dispose();
         this.database = null;
     }
 }
コード例 #2
0
 public SqlDatabaseConcertRepository(ConcertDataContext database, IDistributedCache cache)
 {
     this.database = database;
     this.cache    = cache;
 }