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.
Configures the key property(s) for this entity type.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual EntityTypeConfiguration HasKey(
PropertyInfo keyProperty
)
public:
virtual EntityTypeConfiguration^ HasKey(
PropertyInfo^ keyProperty
)
abstract HasKey :
keyProperty:PropertyInfo -> EntityTypeConfiguration
override HasKey :
keyProperty:PropertyInfo -> EntityTypeConfiguration
Public Overridable Function HasKey (
keyProperty As PropertyInfo
) As EntityTypeConfiguration
Parameters
keyProperty
Type: System.Reflection.PropertyInfoThe property to be added to the key properties of this entity type.
Return Value
Type: System.Web.Http.OData.Builder.EntityTypeConfiguration
Returns itself so that multiple calls can be chained.
See Also
EntityTypeConfiguration Class
System.Web.Http.OData.Builder Namespace
Return to top