Question: How can I make a Field or Class property in a POCO Data Model not required or Optional in DotNet Core 2.2.
Please Login to see the rest of the answer
[NotMapped]
public string predictedFakeNews { get; set; }
//If you are using property as an integer then just prefix it with a question mark after a type which is an integer.
public int? number {get; set;}
//If you want to make a set attribute private then do as follow
public int? number {get; private set;}