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

定义

属性“{1_entityType}。无法将 {0_property}“ 标记为可为 null/可选,因为属性的类型为”{propertyType}“,该类型不是可为 null 的类型。 任何属性都可以标记为不可为 null/必需,但只有可为 null 类型的属性可以标记为可为 null/可选。

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

参数

property
Object
entityType
Object
propertyType
Object

返回

适用于