Fix code analysis warnings

This commit is contained in:
Aaron Po
2026-08-21 23:53:18 -04:00
parent 7bcadc5ae4
commit f015ac8025
19 changed files with 9209 additions and 101 deletions

View File

@@ -13,8 +13,8 @@ public sealed class BeerPost
// Attributes
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public decimal ABV { get; set; }
public int IBU { get; set; }
public decimal Abv { get; set; }
public int Ibu { get; set; }
// Audit Fields
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

View File

@@ -8,7 +8,7 @@ public sealed class Country
// Attributes
public string CountryName { get; set; } = string.Empty;
public string ISO3166_1 { get; set; } = string.Empty; // this is the iso 3166-1 alpha-2 code for the country, e.g. "US" for United States, "CA" for Canada, etc.
public string Iso31661 { get; set; } = string.Empty; // this is the iso 3166-1 alpha-2 code for the country, e.g. "US" for United States, "CA" for Canada, etc.
// Audit Fields
public byte[]? RowVersion { get; set; }

View File

@@ -13,7 +13,7 @@ public sealed class StateProvince
// this is the iso 3166-2 code for the state/province, e.g. "CA" for California, "ON" for Ontario, etc.
// and is rendered like US-CA for California, CA-ON for Ontario, etc.
public string ISO3166_2 { get; set; } = string.Empty;
public string Iso31662 { get; set; } = string.Empty;
// Audit Fields
public byte[]? RowVersion { get; set; }