Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
![]() |
RemoveKey(EnumPropertyConfiguration) | Removes the enum property from the entity enum keys collection. |
![]() |
RemoveKey(PrimitivePropertyConfiguration) | Removes the property from the entity keys collection. |
See Also
EntityTypeConfiguration Class
System.Web.OData.Builder Namespace
Return to top
EntityTypeConfiguration.RemoveKey Method (EnumPropertyConfiguration)
Removes the enum property from the entity enum keys collection.
Syntax
public virtual void RemoveKey(
EnumPropertyConfiguration enumKeyProperty
)
public:
virtual void RemoveKey(
EnumPropertyConfiguration^ enumKeyProperty
)
abstract RemoveKey :
enumKeyProperty:EnumPropertyConfiguration -> unit
override RemoveKey :
enumKeyProperty:EnumPropertyConfiguration -> unit
Public Overridable Sub RemoveKey (
enumKeyProperty As EnumPropertyConfiguration
)
Parameters
enumKeyProperty
Type: System.Web.OData.Builder.EnumPropertyConfigurationThe 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
Return to top
EntityTypeConfiguration.RemoveKey Method (PrimitivePropertyConfiguration)
Removes the property from the entity keys collection.
Syntax
public virtual void RemoveKey(
PrimitivePropertyConfiguration keyProperty
)
public:
virtual void RemoveKey(
PrimitivePropertyConfiguration^ keyProperty
)
abstract RemoveKey :
keyProperty:PrimitivePropertyConfiguration -> unit
override RemoveKey :
keyProperty:PrimitivePropertyConfiguration -> unit
Public Overridable Sub RemoveKey (
keyProperty As PrimitivePropertyConfiguration
)
Parameters
keyProperty
Type: System.Web.OData.Builder.PrimitivePropertyConfigurationThe 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
Return to top