Share via


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.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.OData.Builder.PropertyConfiguration
    System.Web.Http.OData.Builder.StructuralPropertyConfiguration
      System.Web.Http.OData.Builder.PrimitivePropertyConfiguration

Syntax

public class PrimitivePropertyConfiguration : StructuralPropertyConfiguration
public ref class PrimitivePropertyConfiguration : StructuralPropertyConfiguration
type PrimitivePropertyConfiguration = 
    class
        inherit StructuralPropertyConfiguration
    end
Public Class PrimitivePropertyConfiguration
    Inherits StructuralPropertyConfiguration

Constructors

Name Description
System_CAPS_pubmethod PrimitivePropertyConfiguration(PropertyInfo, StructuralTypeConfiguration)

Initializes a new instance of the PrimitivePropertyConfiguration class.

Properties

Name Description
System_CAPS_pubproperty 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.)

System_CAPS_pubproperty ConcurrencyToken

Gets or sets a value indicating whether this property is a concurrency token or not. (Inherited from StructuralPropertyConfiguration.)

System_CAPS_pubproperty DeclaringType

Gets the declaring type. (Inherited from PropertyConfiguration.)

System_CAPS_pubproperty Kind

Gets the type of this property. (Overrides PropertyConfiguration.Kind.)

System_CAPS_pubproperty Name

Gets the name of the property. (Inherited from PropertyConfiguration.)

System_CAPS_pubproperty OptionalProperty

Gets or sets a value indicating whether this property is optional or not. (Inherited from StructuralPropertyConfiguration.)

System_CAPS_pubproperty PropertyInfo

Gets the mapping CLR PropertyInfo. (Inherited from PropertyConfiguration.)

System_CAPS_pubproperty RelatedClrType

Gets the backing CLR type of this property type. (Overrides PropertyConfiguration.RelatedClrType.)

System_CAPS_pubproperty StoreGeneratedPattern

Gets or sets a value indicating which StoreGeneratedPattern is this property.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod HasStoreGeneratedPattern(DatabaseGeneratedOption)

Configures the property to have the given databaseGeneratedOption.

System_CAPS_pubmethod IsConcurrencyToken()

Configures the property to be ConcurrencyCheck (OData: ETag).

System_CAPS_pubmethod IsOptional()

Configures the property to be optional.

System_CAPS_pubmethod IsRequired()

Configures the property to be required.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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.Http.OData.Builder Namespace

Return to top