refactor(UserRep): nullable related propoerties gemacht.

- RepUserId von UserRepCreateDto löschbar gemacht.
 - ChangedWho von UserRepReadDto löschbar gemacht.
 - RepUserId von UserRepUpdateDto löschbar gemacht.
This commit is contained in:
Developer 02
2024-11-06 10:03:10 +01:00
parent b3131637ab
commit 5df5cc555a
7 changed files with 7 additions and 39 deletions

View File

@@ -54,7 +54,7 @@ try {
// Once the app is built, the password will be decrypted with Encryptor. lazy loading also acts as a call back method.
Lazy<string>? cnn_str = null;
builder.Services.AddDbContext<UserManagerDbContext>(options => options.UseSqlServer(cnn_str!.Value).EnableDetailedErrors());
builder.Services.AddDbContext<UserManagerDbContext>(options => options.UseSqlServer(cnn_str!.Value).EnableSensitiveDataLogging());
var allowedOrigins = builder.Configuration.GetSection("AllowedOrigins").Get<string[]>() ?? throw new InvalidOperationException("In appsettings there is no allowed origin.");