diff --git a/frameworks/dotnet-clean-architecture/Infrastructure/Data/DatabaseContextFactory.cs.tmpl b/frameworks/dotnet-clean-architecture/Infrastructure/Data/DatabaseContextFactory.cs.tmpl index 157bed6..2621cfc 100644 --- a/frameworks/dotnet-clean-architecture/Infrastructure/Data/DatabaseContextFactory.cs.tmpl +++ b/frameworks/dotnet-clean-architecture/Infrastructure/Data/DatabaseContextFactory.cs.tmpl @@ -8,7 +8,7 @@ namespace Infrastructure.Data public DatabaseContext CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder(); - 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); } } diff --git a/frameworks/dotnet-clean-architecture/MicroServiceName/appsettings.json.tmpl b/frameworks/dotnet-clean-architecture/MicroServiceName/appsettings.json.tmpl index 2551f16..7aa13b6 100644 --- a/frameworks/dotnet-clean-architecture/MicroServiceName/appsettings.json.tmpl +++ b/frameworks/dotnet-clean-architecture/MicroServiceName/appsettings.json.tmpl @@ -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}}",