Share via


EntityTypeConfiguration.RemoveKey Method

 

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod RemoveKey(EnumPropertyConfiguration)

Removes the enum property from the entity enum keys collection.

System_CAPS_pubmethod 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

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

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