PrimitivePropertyConfiguration Class
Used to configure a primitive property of an entity type or complex type. This configuration functionality is exposed by the model builder Fluent API, see ODataModelBuilder .
Inheritance Hierarchy
System.Object
System.Web.Http.OData.Builder.PropertyConfiguration
System.Web.Http.OData.Builder.StructuralPropertyConfiguration
System.Web.Http.OData.Builder.PrimitivePropertyConfiguration
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Class PrimitivePropertyConfiguration _
Inherits StructuralPropertyConfiguration
'Usage
Dim instance As PrimitivePropertyConfiguration
public class PrimitivePropertyConfiguration : StructuralPropertyConfiguration
public ref class PrimitivePropertyConfiguration : public StructuralPropertyConfiguration
type PrimitivePropertyConfiguration =
class
inherit StructuralPropertyConfiguration
end
public class PrimitivePropertyConfiguration extends StructuralPropertyConfiguration
The PrimitivePropertyConfiguration type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PrimitivePropertyConfiguration | Initializes a new instance of the PrimitivePropertyConfiguration class. |
Top
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.) | |
DeclaringType | Gets the declaring type. (Inherited from PropertyConfiguration.) | |
Kind | Gets the type of this property. (Overrides PropertyConfiguration.Kind.) | |
Name | Gets the name of the property. (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.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsOptional | Configures the property to be optional. | |
IsRequired | Configures the property to be required. | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
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.