Example #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (TrainingContext != null)
     {
         TrainingContext.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }