Adding database configuration - wip
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Microsoft.OpenApi.Models;
|
||||
using NLog;
|
||||
using NLog;
|
||||
using BasicDotnetTemplate.MainProject.Models.Settings;
|
||||
using System.Reflection;
|
||||
using BasicDotnetTemplate.MainProject.Utils;
|
||||
|
||||
|
||||
|
||||
namespace BasicDotnetTemplate.MainProject;
|
||||
|
||||
public static class ReflectionProgram
|
||||
@@ -41,8 +40,10 @@ internal static class Program
|
||||
AppSettings appSettings = ProgramUtils.AddConfiguration(ref builder);
|
||||
ProgramUtils.AddServices(ref builder);
|
||||
ProgramUtils.AddOpenApi(ref builder, appSettings);
|
||||
ProgramUtils.AddDbContext(ref builder, appSettings);
|
||||
WebApplication app = builder.Build();
|
||||
ProgramUtils.AddMiddlewares(ref app);
|
||||
|
||||
Logger.Info("[Program][Initialize] End building");
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user