public ControlContext() : base(DBConexao.GetConnectionString(), throwIfV1Schema: false) { Database.SetInitializer(new DropCreateDatabaseIfModelChanges <ControlContext>()); }
public ControlContext() : base(DBConexao.GetConnectionString(), throwIfV1Schema: false) { //Database.SetInitializer(new DropCreateDatabaseAlways<ControlContext>()); //this.Configuration.LazyLoadingEnabled = false; }