IConventionTypeBase.FindDeclaredProperty(String) 方法

定义

查找在具有给定名称的类型上声明的属性。 不返回在基类型上定义的属性。

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

参数

name
String

属性名称。

返回

属性;如果未找到任何属性,则为 。null

适用于