Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this._context != null)
         {
             this._context.Dispose();
             this._context = null;
         }
     }
 }
Example #2
0
 public Repository(qrcodeContext context)
 {
     this._context = context ?? throw new ArgumentNullException("context");
 }