Entities: Use 'required' and '= null!' to get rid of warnings
This commit is contained in:
1 parent
53a25b3be4
commit
f922388db9
40 files changed
+142
-155
No files matched your search
@@ -14,12 +14,12 @@ namespace Elwig.Models.Entities {
|
||||
public int DPNr { get; set; }
|
||||
|
||||
[ForeignKey("Year, DId, DPNr")]
|
||||
public virtual DeliveryPart Part { get; private set; }
|
||||
public virtual DeliveryPart Part { get; private set; } = null!;
|
||||
|
||||
[Column("modid")]
|
||||
public string ModId { get; set; }
|
||||
public required string ModId { get; set; }
|
||||
|
||||
[ForeignKey("Year, ModId")]
|
||||
public virtual Modifier Modifier { get; private set; }
|
||||
public virtual Modifier Modifier { get; private set; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user