Udostępnij za pośrednictwem


EntityTypeConfiguration.RemoveKey Method (PrimitivePropertyConfiguration)

 

Removes the property from the entity keys collection.

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

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

See Also

EntityTypeConfiguration Class
System.Web.Http.OData.Builder Namespace

Return to top