예제 #1
0
 public AppConfigStore(DbContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.Context = context;
     this._configStore = new AppConfigStoreBase(context);
 }
예제 #2
0
 public void SetDbContext(DbContext context)
 {
     this.Context = context;
     this._configStore = new AppConfigStoreBase(context);
 }
예제 #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (this.DisposeContext && disposing && this.Context != null)
     {
         this.Context.Dispose();
     }
     this._disposed = true;
     this.Context = null;
     this._configStore = null;
 }