Entities: Use 'required' and '= null!' to get rid of warnings
This commit is contained in:
@ -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; }
|
||||
|
Reference in New Issue
Block a user