Example #1
0
 public void Dispose()
 {
     if (model != null)
     {
         model.Dispose();
     }
 }
Example #2
0
 public void Dispose()
 {
     if (db != null)
     {
         db.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Example #4
0
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (db != null)
         {
             db.Dispose();
             db = null;
         }
     }
 }
Example #5
0
 public void Dispose()
 {
     initor.coins.Clear();
     initor.traders.Clear();
     initor.contracts.Clear();
     if (ars != null)
     {
         ars.Flush();
         ars.Dispose();
         ars = null;
     }
     if (srs != null)
     {
         srs.Flush();
         srs.Dispose();
         srs = null;
     }
     if (DbModel != null)
     {
         DbModel.Dispose(); DbModel = null;
     }
 }
Example #6
0
 protected override void Dispose(bool disposing)
 {
     _entityModel.Dispose();
     base.Dispose(disposing);
 }
Example #7
0
 public void Dispose()
 {
     db.Dispose();
 }