Beispiel #1
0
 public Task Disconnect()
 {
     return(Task.Run(() =>
     {
         context.Dispose();
         Conne?.Invoke(context);
     }));
 }
Beispiel #2
0
 public Task Connect()
 {
     return(Task.Run(() =>
     {
         context = new EFContext();
         context.Configuration.AutoDetectChangesEnabled = false;
         var a = context.Access.Count();
         Conne?.Invoke(context);
     }));
 }