SqlServerPropertyAnnotations.GetDefaultValue(Boolean) Method

Definition

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