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