I’m using Reverse Engineered Code First code and see stubs like:
public class User
{
public User()
{
this.Addresses = new List<Address>();
...
}
public int ID { get; set; }
...
}
When, based on this question, i’d expect to see partial classes.
Wouldn’t this change the preferred way of extending the generated classes with my own code (which is very nicely summarized in the linked answer, btw)?
thx
Our aim was to generate the simplest classes possible, as close to what you would write by hand as we could. There is no problem changing them to be partial – that’s exactly the kind of reason we made the generation customizable.
~Rowan