RelationalPropertyExtensions.TryGetDefaultValue 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| TryGetDefaultValue(IReadOnlyProperty, Object) | 
						 返回对象,该对象用作此属性映射到的列的默认值。  | 
        	
| TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object) | 
						 返回对象,该对象用作此属性映射到的列的默认值。  | 
        	
TryGetDefaultValue(IReadOnlyProperty, Object)
返回对象,该对象用作此属性映射到的列的默认值。
public static bool TryGetDefaultValue(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, out object? defaultValue);
	static member TryGetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * obj -> bool
	<Extension()>
Public Function TryGetDefaultValue (property As IReadOnlyProperty, ByRef defaultValue As Object) As Boolean
	参数
- property
 - IReadOnlyProperty
 
属性。
- defaultValue
 - Object
 
默认值,如果未设置显式默认值,则为 CLR 默认值。
返回
              true 如果显式设置了默认值,则为 ; false 否则。
适用于
TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)
返回对象,该对象用作此属性映射到的列的默认值。
public static bool TryGetDefaultValue(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property, in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, out object? defaultValue);
	static member TryGetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty * StoreObjectIdentifier * obj -> bool
	<Extension()>
Public Function TryGetDefaultValue (property As IReadOnlyProperty, ByRef storeObject As StoreObjectIdentifier, ByRef defaultValue As Object) As Boolean
	参数
- property
 - IReadOnlyProperty
 
属性。
- storeObject
 - StoreObjectIdentifier
 
包含列的类似表的存储对象的标识符。
- defaultValue
 - Object
 
默认值,如果未设置显式默认值,则为 CLR 默认值。
返回
              true 如果显式设置了默认值,则为 ; false 否则。