コード例 #1
0
 public PermissionStore(DbContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     this.Context          = context;
     this._permissionStore = new PermissionStoreBase(context);
 }
コード例 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (this.DisposeContext && disposing && this.Context != null)
     {
         this.Context.Dispose();
     }
     this._disposed        = true;
     this.Context          = null;
     this._permissionStore = null;
 }