CoreStrings.PropertyInUseKey(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}' cannot be removed from the type '{entityType}' because it is being used in the key {keyProperties}. All containing keys must be removed or redefined before the property can be removed.
public static string PropertyInUseKey (object property, object entityType, object key);
public static string PropertyInUseKey (object property, object entityType, object keyProperties);
public static string PropertyInUseKey (object? property, object? entityType, object? keyProperties);
static member PropertyInUseKey : obj * obj * obj -> string
static member PropertyInUseKey : obj * obj * obj -> string
Public Shared Function PropertyInUseKey (property As Object, entityType As Object, key As Object) As String
Public Shared Function PropertyInUseKey (property As Object, entityType As Object, keyProperties As Object) As String
Parameters
- property
- Object
- entityType
- Object
- keykeyProperties
- 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