What is the best way to perform partial updates in EF core and never update certain properties?
问题 I know you can do something like var myObj = _db.MyTable.FirstOrDefault(x=>x.Id==id) and then update myObj property by property that you want to update but is there a better way to update say 6 out of 10 properties of myObj and leave the other 4 alone or have them marked as a way that they are only set once and never updateable from ef core? public class MyObject { public string Id { get; set; } public string Prop1 { get; set; } public string Prop2 { get; set; } public string Prop3 { get; set