You can see and set a property's default value in the EDM Designer.
This screen shows that Customer.CompanyName has been given a default value of "--unknown--".
The EDM Designer adds this default to the definition of the CompanyName property.
<Property Name="CompanyName" ... DefaultValue="--unknown--" />
DevForce code generation adds a corresponding DefaultValueAttribute to the generated CompanyName property.
C# | [DefaultValue("--unknown--")] public string CompanyName { ... } |
VB | <DefaultValue("--unknown--")> Public Property CompanyName As String ... |
Finally, DevForce reads the attribute at runtime and records the default in its metadata.
The entity creation topic explains how this model default value is used.