User1655654435 posted
I use ef core and I have a property in my model that usually is set to a certain value. I'm wondering if I can auto assign this property to this value, so that when I save the table this property is automatically set?
public string Language { get; set; } = "No";
Would this even work and is it bad practice to do stuff like this in the data models? I also want to be able to change this value if I need to do it.