SqlServerPropertyAnnotations.GetDefaultValueSql(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 SQL expression set for the property.
protected override string GetDefaultValueSql (bool fallback);
override this.GetDefaultValueSql : bool -> string
Protected Overrides Function GetDefaultValueSql (fallback As Boolean) As String
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 expressions.
Returns
The default expression, 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