SqlServerPropertyAnnotations.GetDefaultValue(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the default value set for the property.
protected override object GetDefaultValue (bool fallback);
override this.GetDefaultValue : bool -> obj
Protected Overrides Function GetDefaultValue (fallback As Boolean) As Object
Parameters
- fallback
- Boolean
If true
, and some SQL Server specific
ValueGenerationStrategy has been set, then this method will always
return null
because these strategies do not use default values.
Returns
The default value, or null
if none has been set.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework