Ejemplo n.º 1
0
 public EFContexto()
     : base(FrameworkUtil.RetornaStringConexao(), true)
 {
     this.Configuration.ProxyCreationEnabled     = false;
     this.Configuration.LazyLoadingEnabled       = false;
     this.Configuration.AutoDetectChangesEnabled = false;
     Database.SetInitializer(new EFContextoInitializer());
     //Database.SetInitializer<EFContexto>(new EFContextoInitializer());
     //Database.SetInitializer(new MigrateDatabaseToLatestVersion<EFContexto, BSFood.Migrations.Configuration>("BSFood.DataAccess.EFContexto"));
 }