EntityTypeConfiguration.RemoveKey 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.
Overloads
RemoveKey(EnumPropertyConfiguration) |
Removes the enum property from the entity enum keys collection. |
RemoveKey(PrimitivePropertyConfiguration) |
Removes the property from the entity keys collection. |
RemoveKey(EnumPropertyConfiguration)
Removes the enum property from the entity enum keys collection.
public virtual void RemoveKey (Microsoft.AspNet.OData.Builder.EnumPropertyConfiguration enumKeyProperty);
abstract member RemoveKey : Microsoft.AspNet.OData.Builder.EnumPropertyConfiguration -> unit
override this.RemoveKey : Microsoft.AspNet.OData.Builder.EnumPropertyConfiguration -> unit
Public Overridable Sub RemoveKey (enumKeyProperty As EnumPropertyConfiguration)
Parameters
- enumKeyProperty
- EnumPropertyConfiguration
The key to be removed.
Remarks
This method just disable the property to be not a key anymore. It does not remove the property all together. To remove the property completely, use the method RemoveProperty(PropertyInfo)
Applies to
RemoveKey(PrimitivePropertyConfiguration)
Removes the property from the entity keys collection.
public virtual void RemoveKey (Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration keyProperty);
abstract member RemoveKey : Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration -> unit
override this.RemoveKey : Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration -> unit
Public Overridable Sub RemoveKey (keyProperty As PrimitivePropertyConfiguration)
Parameters
- keyProperty
- PrimitivePropertyConfiguration
The key to be removed.
Remarks
This method just disable the property to be not a key anymore. It does not remove the property all together. To remove the property completely, use the method RemoveProperty(PropertyInfo)