Beispiel #1
0
 private EFUnitOfWork(string connectionString)
 {
     Context = new BifDbContext(connectionString);
     //if (connectionString != null) {
     //    Context.Database.Connection.ConnectionString = connectionString;
     //    Context.Database.Connection.Open();
     //}
 }
Beispiel #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.Context != null)
         {
             this.Context.Dispose();
             this.Context = null;
         }
     }
 }