Beispiel #1
0
 public UsingUnionContext() : base(CodeFirstFixture.GetEFConnectionString <UsingUnionContext>())
 {
 }
Beispiel #2
0
 public VehicleDbContext2() : base(CodeFirstFixture.GetEFConnectionString <VehicleDbContext2>())
 {
     Database.SetInitializer <VehicleDbContext2>(new VehicleDBInitializer2());
 }
Beispiel #3
0
 public ShortDbContext() : base(CodeFirstFixture.GetEFConnectionString <ShortDbContext>())
 {
 }
Beispiel #4
0
 public AutoIncrementBugContext() : base(CodeFirstFixture.GetEFConnectionString <AutoIncrementBugContext>())
 {
     Database.SetInitializer <AutoIncrementBugContext>(new AutoIncrementBugInitialize <AutoIncrementBugContext>());
     Database.SetInitializer <AutoIncrementBugContext>(new DropCreateDatabaseAlways <AutoIncrementBugContext>());
 }
Beispiel #5
0
 public VehicleDbContext3() : base(CodeFirstFixture.GetEFConnectionString <VehicleDbContext3>())
 {
 }
Beispiel #6
0
 public ProductsDbContext() : base(CodeFirstFixture.GetEFConnectionString <ProductsDbContext>())
 {
 }
Beispiel #7
0
 public SakilaDb()
     : base(CodeFirstFixture.GetEFConnectionString <SakilaDb>("sakila"))
 {
 }
 public PromotionsDB() : base(CodeFirstFixture.GetEFConnectionString <PromotionsDB>())
 {
     Database.SetInitializer <PromotionsDB>(new PromotionsDBInitializer());
 }
Beispiel #9
0
 public MovieCodedBasedConfigDBContext() : base(CodeFirstFixture.GetEFConnectionString <MovieCodedBasedConfigDBContext>())
 {
     Database.SetInitializer <MovieCodedBasedConfigDBContext>(new MovieCBCDBInitialize <MovieCodedBasedConfigDBContext>());
     Database.SetInitializer <MovieCodedBasedConfigDBContext>(new MigrateDatabaseToLatestVersion <MovieCodedBasedConfigDBContext, Configuration <MovieCodedBasedConfigDBContext> >());
 }
Beispiel #10
0
 public BlogContext() : base(CodeFirstFixture.GetEFConnectionString <BlogContext>())
 {
 }
Beispiel #11
0
 public EntityAndComplexTypeContext() : base(CodeFirstFixture.GetEFConnectionString <EntityAndComplexTypeContext>())
 {
     Database.SetInitializer <EntityAndComplexTypeContext>(new MovieCBCDBInitialize <EntityAndComplexTypeContext>());
     Database.SetInitializer <EntityAndComplexTypeContext>(new MigrateDatabaseToLatestVersion <EntityAndComplexTypeContext, Configuration <EntityAndComplexTypeContext> >());
 }
Beispiel #12
0
 public JourneyContext() : base(CodeFirstFixture.GetEFConnectionString <JourneyContext>())
 {
     Database.SetInitializer <JourneyContext>(new JourneyInitialize <JourneyContext>());
     Database.SetInitializer <JourneyContext>(new MigrateDatabaseToLatestVersion <JourneyContext, JourneyConfiguration>());
 }
Beispiel #13
0
 public EnumTestSupportContext() : base(CodeFirstFixture.GetEFConnectionString <EnumTestSupportContext>())
 {
     Database.SetInitializer <EnumTestSupportContext>(new EnumTestSupportInitialize <EnumTestSupportContext>());
     Database.SetInitializer <EnumTestSupportContext>(new MigrateDatabaseToLatestVersion <EnumTestSupportContext, EnumCtxConfiguration>());
 }
Beispiel #14
0
 public DinosauriaDBContext() : base(CodeFirstFixture.GetEFConnectionString <DinosauriaDBContext>())
 {
     Database.SetInitializer <DinosauriaDBContext>(new DinosauriaDBInitializer());
 }
Beispiel #15
0
 public ShipContext() : base(CodeFirstFixture.GetEFConnectionString <ShipContext>())
 {
     Database.SetInitializer(new DropCreateDatabaseAlways <ShipContext>());
 }
Beispiel #16
0
 public SiteDbContext() : base(CodeFirstFixture.GetEFConnectionString <SiteDbContext>())
 {
     Database.SetInitializer <SiteDbContext>(new SiteDbInitializer());
     Database.SetInitializer <SiteDbContext>(new MigrateDatabaseToLatestVersion <SiteDbContext, Configuration <SiteDbContext> >());
 }
Beispiel #17
0
 public MovieDBContext() : base(CodeFirstFixture.GetEFConnectionString <MovieDBContext>())
 {
     //Database.SetInitializer<MovieDBContext>(new MigrateDatabaseToLatestVersion<MovieDBContext, DbMigrationsConfiguration<MovieDBContext>>());
     Database.SetInitializer <MovieDBContext>(new DropCreateDatabaseAlways <MovieDBContext>());
 }