語言

CoreStrings.NullableKey(Object, Object) 方法

定義

實體類型 '{entityType}' 的鍵不能包含屬性 '{property}',因為它是可空/可選的。 所有宣告金鑰的屬性都必須標記為不可空(non-nullable/required)。

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

參數

entityType
Object
property
Object

傳回

適用於