Entities: Use 'required' and '= null!' to get rid of warnings

This commit is contained in:
2024-02-29 15:48:09 +01:00
parent 53a25b3be4
commit f922388db9
40 changed files with 142 additions and 155 deletions

View File

@ -5,13 +5,13 @@ namespace Elwig.Models.Entities {
[Table("wine_variety"), PrimaryKey("SortId")]
public class WineVar {
[Column("sortid")]
public string SortId { get; private set; }
public string SortId { get; private set; } = null!;
[Column("type")]
public string Type { get; private set; }
public string Type { get; private set; } = null!;
[Column("name")]
public string Name { get; private set; }
public string Name { get; private set; } = null!;
[Column("comment")]
public string? Comment { get; private set; }