CoreStrings.NonComparableKeyTypes(Object, Object, Object, Object) 方法

定义

属性'{entityType}。{property}“不能用作键,因为它具有类型”{modelType}“和提供程序类型”{providerType}“,这两者都不实现”IComparable<T>“、”IComparable“或”IStructuralComparable”。 使“{modelType}”实现其中一个接口以将其用作键。

public static string NonComparableKeyTypes (object entityType, object property, object modelType, object providerType);
public static string NonComparableKeyTypes (object? entityType, object? property, object? modelType, object? providerType);
static member NonComparableKeyTypes : obj * obj * obj * obj -> string
Public Shared Function NonComparableKeyTypes (entityType As Object, property As Object, modelType As Object, providerType As Object) As String

参数

entityType
Object
property
Object
modelType
Object
providerType
Object

返回

适用于