Closed vvdb-architecture closed 1 year ago
When adding a dabase layer, the Program.cs is modified to contain the correct initialization:
Program.cs
services.AddDbContextPool<Elia.Solution.Service.Database.DatabaseContext>(optionsBuilder => { optionsBuilder.UseSqlServer(Configuration.GetConnectionString("Solution_Service"), (options) => { options.CommandTimeout(30); }) .UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); });
This will not compile, because the Solution.Service.Database project is not added as a reference to Solution.Service.Host project.
Solution.Service.Database
Solution.Service.Host
missing await when adding the reference => will add this in the current sprint for 1.10.
When adding a dabase layer, the
Program.cs
is modified to contain the correct initialization:This will not compile, because the
Solution.Service.Database
project is not added as a reference toSolution.Service.Host
project.