Reputation: 3504
For every table, EF generates a partial class, where all fields are publicly accessible, for example
public int ID { get; set; }
Is it possible to make the set
private? I would then only allow the field to be changed calling my custom public method.
Upvotes: 3
Views: 783