CoreStrings.NullableKey(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A key on entity type '{entityType}' cannot contain the property '{property}' because it is nullable/optional. All properties on which a key is declared must be marked as 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
Parameters
- entityType
- Object
- property
- Object
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework