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