IConventionTypeBase.GetProperty(String) 方法

定义

获取具有给定名称的属性。

public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionProperty GetProperty (string name);
abstract member GetProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
override this.GetProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
Public Overridable Function GetProperty (name As String) As IConventionProperty

参数

name
String

属性名称。

返回

属性。

注解

此 API 仅查找标量属性,不查找导航属性。

适用于