EnumPropertyConfiguration Class
Used to configure an enum property of an entity type or complex type. This configuration functionality is exposed by the model builder Fluent API, see ODataModelBuilder.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Inheritance Hierarchy
System.Object
System.Web.OData.Builder.PropertyConfiguration
System.Web.OData.Builder.StructuralPropertyConfiguration
System.Web.OData.Builder.EnumPropertyConfiguration
Syntax
public class EnumPropertyConfiguration : StructuralPropertyConfiguration
public ref class EnumPropertyConfiguration : StructuralPropertyConfiguration
type EnumPropertyConfiguration =
class
inherit StructuralPropertyConfiguration
end
Public Class EnumPropertyConfiguration
Inherits StructuralPropertyConfiguration
Constructors
Name | Description | |
---|---|---|
EnumPropertyConfiguration(PropertyInfo, StructuralTypeConfiguration) | Initializes a new instance of the EnumPropertyConfiguration class. |
Properties
Name | Description | |
---|---|---|
AddedExplicitly | Gets or sets a value that is true if the property was added by the user; false if it was inferred through conventions.(Inherited from PropertyConfiguration.) |
|
AutoExpand | Gets or sets whether the property is automatically expanded. default is false. (Inherited from PropertyConfiguration.) |
|
ConcurrencyToken | Gets or sets a value indicating whether this property is a concurrency token or not.(Inherited from StructuralPropertyConfiguration.) |
|
DeclaringType | Gets the declaring type.(Inherited from PropertyConfiguration.) |
|
IsRestricted | Gets whether the property is restricted, i.e. not filterable, not sortable, not navigable, not expandable, or not countable.(Inherited from PropertyConfiguration.) |
|
Kind | Gets the type of this property.(Overrides PropertyConfiguration.Kind.) |
|
Name | Gets or sets the name of the property.(Inherited from PropertyConfiguration.) |
|
NonFilterable | Gets or sets whether the property is nonfilterable. default is false.(Inherited from PropertyConfiguration.) |
|
NotCountable | Gets or sets whether the property is not countable. default is false.(Inherited from PropertyConfiguration.) |
|
NotExpandable | Gets or sets whether the property is not expandable. default is false.(Inherited from PropertyConfiguration.) |
|
NotFilterable | Gets or sets whether the property is not filterable. default is false.(Inherited from PropertyConfiguration.) |
|
NotNavigable | Gets or sets whether the property is not navigable. default is false.(Inherited from PropertyConfiguration.) |
|
NotSortable | Gets or sets whether the property is not sortable. default is false.(Inherited from PropertyConfiguration.) |
|
OptionalProperty | Gets or sets a value indicating whether this property is optional or not.(Inherited from StructuralPropertyConfiguration.) |
|
PropertyInfo | Gets the mapping CLR PropertyInfo.(Inherited from PropertyConfiguration.) |
|
RelatedClrType | Gets the backing CLR type of this property type.(Overrides PropertyConfiguration.RelatedClrType.) |
|
Unsortable | Gets or sets whether the property is unsortable. default is false.(Inherited from PropertyConfiguration.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
IsConcurrencyToken() | Configures the property to be used in concurrency checks. For OData this means to be part of the ETag. |
|
IsCountable() | Sets the property as countable.(Inherited from PropertyConfiguration.) |
|
IsExpandable() | Sets the property as expandable.(Inherited from PropertyConfiguration.) |
|
IsFilterable() | Sets the property as filterable.(Inherited from PropertyConfiguration.) |
|
IsNavigable() | Sets the property as navigable.(Inherited from PropertyConfiguration.) |
|
IsNonFilterable() | Sets the property as nonfilterable.(Inherited from PropertyConfiguration.) |
|
IsNotCountable() | Sets the property as not countable.(Inherited from PropertyConfiguration.) |
|
IsNotExpandable() | Sets the property as not expandable.(Inherited from PropertyConfiguration.) |
|
IsNotFilterable() | Sets the property as not filterable.(Inherited from PropertyConfiguration.) |
|
IsNotNavigable() | Sets the property as not navigable.(Inherited from PropertyConfiguration.) |
|
IsNotSortable() | Sets the property as not sortable.(Inherited from PropertyConfiguration.) |
|
IsOptional() | Configures the property to be optional. |
|
IsRequired() | Configures the property to be required. |
|
IsSortable() | Sets the property as sortable.(Inherited from PropertyConfiguration.) |
|
IsUnsortable() | Sets the property as unsortable.(Inherited from PropertyConfiguration.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.OData.Builder Namespace
Return to top