Share via


EntityTypeConfiguration Class

 

Represents an IEdmEntityType that can be built using ODataModelBuilder.

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

Inheritance Hierarchy

System.Object
  System.Web.OData.Builder.StructuralTypeConfiguration
    System.Web.OData.Builder.EntityTypeConfiguration

Syntax

public class EntityTypeConfiguration : StructuralTypeConfiguration
public ref class EntityTypeConfiguration : StructuralTypeConfiguration
type EntityTypeConfiguration = 
    class
        inherit StructuralTypeConfiguration
    end
Public Class EntityTypeConfiguration
    Inherits StructuralTypeConfiguration

Constructors

Name Description
System_CAPS_pubmethod EntityTypeConfiguration()

Initializes a new instance of the EntityTypeConfiguration class.

System_CAPS_pubmethod EntityTypeConfiguration(ODataModelBuilder, Type)

Initializes a new instance of the EntityTypeConfiguration class.

Properties

Name Description
System_CAPS_pubproperty AddedExplicitly

Gets or sets a value that is true if the type's name or namespace was set by the user; false if it was inferred through conventions. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty BaseType

Gets or sets the base type of this entity type.

System_CAPS_pubproperty BaseTypeConfigured

Gets a value that represents whether the base type is explicitly configured or inferred. (Inherited from StructuralTypeConfiguration.)

System_CAPS_protproperty BaseTypeInternal

Gets the base type of this structural type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty ClrType

Gets the backing CLR Type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty DynamicPropertyDictionary

Gets the CLR property info of the dynamic property dictionary on this structural type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty EnumKeys

Gets the collection of enum keys for this entity type.

System_CAPS_protproperty ExplicitProperties

Gets the collection of explicitly added properties. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty FullName

Gets the full name of this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty HasStream

Gets or sets a value indicating whether this type is a media type.

System_CAPS_pubproperty IgnoredProperties

Gets the properties from the backing CLR type that are to be ignored on this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty IsAbstract

Gets or sets a value indicating whether this type is abstract. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty IsOpen

Gets a value indicating whether this type is open or not. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty Keys

Gets the collection of keys for this entity type.

System_CAPS_pubproperty Kind

Gets the EdmTypeKind of this IEdmTypeConfiguration(Overrides StructuralTypeConfiguration.Kind.)

System_CAPS_pubproperty ModelBuilder

The ODataModelBuilder. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty Name

Gets or sets the name of this EDM type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty Namespace

Gets or sets the namespace of this EDM type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubproperty NavigationProperties

Gets the collection of NavigationPropertyConfiguration of this entity type.

System_CAPS_pubproperty Properties

Gets the declared properties on this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_protproperty RemovedProperties

Gets the collection of explicitly removed properties. (Inherited from StructuralTypeConfiguration.)

Methods

Name Description
System_CAPS_pubmethod Abstract()

Marks this entity type as abstract.

System_CAPS_pubmethod AddCollectionProperty(PropertyInfo)

Adds a collection property to this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubmethod AddComplexProperty(PropertyInfo)

Adds a complex property to this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubmethod AddContainedNavigationProperty(PropertyInfo, EdmMultiplicity)

Adds a contained EDM navigation property to this entity type.

System_CAPS_pubmethod AddDynamicPropertyDictionary(PropertyInfo)

Adds the property info of the dynamic properties to this structural type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubmethod AddEnumProperty(PropertyInfo)

Adds an enum property to this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubmethod AddNavigationProperty(PropertyInfo, EdmMultiplicity)

Adds a non-contained EDM navigation property to this entity type.

System_CAPS_pubmethod AddProperty(PropertyInfo)

Adds a primitive property to this edm type. (Inherited from StructuralTypeConfiguration.)

System_CAPS_pubmethod DerivesFrom(EntityTypeConfiguration)

Sets the base type of this entity type.

System_CAPS_pubmethod DerivesFromNothing()

Sets the base type of this entity type to null meaning that this entity type does not derive from anything.

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 HasKey(PropertyInfo)

Configures the key property(s) for this entity type.

System_CAPS_pubmethod MediaType()

Marks this entity type as media type.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RemoveKey(EnumPropertyConfiguration)

Removes the enum property from the entity enum keys collection.

System_CAPS_pubmethod RemoveKey(PrimitivePropertyConfiguration)

Removes the property from the entity keys collection.

System_CAPS_pubmethod RemoveProperty(PropertyInfo)

Removes the property from the entity.(Overrides StructuralTypeConfiguration.RemoveProperty(PropertyInfo).)

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

Return to top