CoreStrings.PropertyDoesNotBelong(Object, 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.
The property '{property}' belongs to the type '{expectedType}', but is being used with an instance of type '{actualType}'.
public static string PropertyDoesNotBelong (object property, object entityType, object expectedType);
public static string PropertyDoesNotBelong (object? property, object? entityType, object? expectedType);
public static string PropertyDoesNotBelong (object? property, object? expectedType, object? actualType);
static member PropertyDoesNotBelong : obj * obj * obj -> string
static member PropertyDoesNotBelong : obj * obj * obj -> string
Public Shared Function PropertyDoesNotBelong (property As Object, entityType As Object, expectedType As Object) As String
Public Shared Function PropertyDoesNotBelong (property As Object, expectedType As Object, actualType As Object) As String
Parameters
- property
- Object
- entityTypeexpectedType
- Object
- expectedTypeactualType
- 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