Database project now has warnings converted to errors

This commit is contained in:
James Tombleson 2023-07-23 22:52:59 -07:00
parent 7b24ba16f7
commit 5df2996947
2 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ public class DatabaseContext : IdentityDbContext
public DbSet<UserSourceSubscriptionEntity> UserSourceSubscription { get; set; } = null!; public DbSet<UserSourceSubscriptionEntity> UserSourceSubscription { get; set; } = null!;
public DbSet<RefreshTokenEntity> RefreshTokens { get; set; } public DbSet<RefreshTokenEntity> RefreshTokens { get; set; } = null!;
private string ConnectionString { get; set; } = ""; private string ConnectionString { get; set; } = "";

View File

@ -21,6 +21,9 @@
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>8981</NoWarn>
</PropertyGroup> </PropertyGroup>
</Project> </Project>