File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Source/Ecommerce.Infrastructure/Persistence/EfCore Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ public EfCoreContext CreateDbContext(string[] args)
1515 {
1616 var optionsBuilder = new DbContextOptionsBuilder < EfCoreContext > ( ) ;
1717
18- optionsBuilder . UseNpgsql (
19- "Host=localhost;Database=ecommerce;Username=postgres;Password=123;Port=5432;"
20- ) ;
21- // optionsBuilder.UseSqlServer(
22- // "Server=EVOO-EG-LP7\\SQLEXPRESS;Database=ecommerce;Trusted_Connection=True;TrustServerCertificate=True;"
18+ // optionsBuilder.UseNpgsql(
19+ // "Host=localhost;Database=ecommerce;Username=postgres;Password=123;Port=5432;"
2320 // );
21+ optionsBuilder . UseSqlServer (
22+ "Server=EVOO-EG-LP7\\ SQLEXPRESS;Database=ecommerce;Trusted_Connection=True;TrustServerCertificate=True;"
23+ ) ;
2424
2525 return new EfCoreContext ( optionsBuilder . Options ) ;
2626 }
You can’t perform that action at this time.
0 commit comments