I created an EF4.1 code-first model (may or may not be important), and I\'m trying to get default values for my Create scaffold template. My model looks like:
class Person { public Person() { Age = 18; } public int Age { get; set; } }
In this scenario, every time you do a new Person age will be initialized with 18 as age, even when the new object is created by the Model Binder.