Пример #1
0
 public static void RenewContext(ref DbApi context)
 {
     if (context != null)
     {
         context.Dispose();
     }
     context = new DbApi(Cliver.CrawlerHost.Api.GetConnectionString(DATABASE_CONNECTION_STRING_NAME));
 }
Пример #2
0
 public static void RenewContext(ref DbApi context)
 {
     if (context != null)
         context.Dispose();
     context = new DbApi(Cliver.CrawlerHost.Api.GetConnectionString(DATABASE_CONNECTION_STRING_NAME));
 }
 protected override void Dispose(bool disposing)
 {
     db.Dispose();
     base.Dispose(disposing);
 }