Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (contextBuilder != null)
         {
             contextBuilder.Dispose();
         }
     }
 }
Example #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (transactionScope != null)
                {
                    transactionScope.Dispose();
                }

                if (contextBuilder != null)
                {
                    contextBuilder.Dispose();
                }
            }
        }