Skip to content

Commit

Permalink
enhancement: added db name (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahendraintelops authored Feb 22, 2024
1 parent 7f53981 commit cb574b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Infrastructure.Data
public DatabaseContext CreateDbContext(string[] args)
{
var optionsBuilder = new DbContextOptionsBuilder<DatabaseContext>();
optionsBuilder.UseSqlServer("Data Source=.;Initial Catalog = {{.MicroServiceName }};User Id=*****;Password=*****;TrustServerCertificate=True;");
optionsBuilder.UseSqlServer("Data Source=.;Initial Catalog = {{.DataBaseName }};User Id=*****;Password=*****;TrustServerCertificate=True;");
return new DatabaseContext(optionsBuilder.Options);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"ConnectionString": "Data Source=localhost,1433;Initial Catalog={{.MicroServiceName }};User Id=sa;Password=Test@123;TrustServerCertificate=True;"
"ConnectionString": "Data Source=localhost,1433;Initial Catalog={{.DataBaseName }};User Id=sa;Password=Test@123;TrustServerCertificate=True;"
},
"Otel": {
"ServiceName": "{{.MicroServiceName}}",
Expand Down

0 comments on commit cb574b5

Please sign in to comment.