Why is EF refusing to create a row if I don’t explicitly set a password?
It can’t be null, and has a default set in the database. An empty string represents no password.
Entity:
public class CredSet
{
public int Id { get; init; }
public string Password { get; set; } = "";
}
New contributor
adam says is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.