EntityTypeConfiguration Class
Represents an IEdmEntityType that can be built using 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.StructuralTypeConfiguration
System.Web.Http.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 | |
---|---|---|
EntityTypeConfiguration() | Initializes a new instance of the EntityTypeConfiguration class. |
|
EntityTypeConfiguration(ODataModelBuilder, Type) | Initializes a new instance of the EntityTypeConfiguration class. |
Properties
Name | Description | |
---|---|---|
BaseType | Gets or sets the base type of this entity type. |
|
BaseTypeConfigured | Gets a value that represents whether the base type is explicitly configured or inferred. |
|
ClrType | Gets the backing CLR Type.(Inherited from StructuralTypeConfiguration.) |
|
ExplicitProperties | Gets the collection of explicitly added properties.(Inherited from StructuralTypeConfiguration.) |
|
FullName | Gets the full name of this edm type.(Inherited from StructuralTypeConfiguration.) |
|
IgnoredProperties | Gets the properties from the backing CLR type that are to be ignored on this edm type.(Inherited from StructuralTypeConfiguration.) |
|
IsAbstract | Gets or sets a value indicating whether this type is abstract. |
|
Keys | Gets the collection of keys for this entity type. |
|
Kind | Gets the EdmTypeKind of this IEdmTypeConfiguration(Overrides StructuralTypeConfiguration.Kind.) |
|
ModelBuilder | The ODataModelBuilder.(Inherited from StructuralTypeConfiguration.) |
|
Name | Gets the name of this edm type.(Inherited from StructuralTypeConfiguration.) |
|
Namespace | Gets the namespace of this edm type.(Inherited from StructuralTypeConfiguration.) |
|
NavigationProperties | Gets the collection of NavigationPropertyConfiguration of this entity type. |
|
Properties | Gets the declared properties on this edm type.(Inherited from StructuralTypeConfiguration.) |
|
RemovedProperties | Gets the collection of explicitly removed properties.(Inherited from StructuralTypeConfiguration.) |
Methods
Name | Description | |
---|---|---|
Abstract() | Marks this entity type as abstract. |
|
AddCollectionProperty(PropertyInfo) | Adds a new EDM collection property to this entity type. (Overrides StructuralTypeConfiguration.AddCollectionProperty(PropertyInfo).) |
|
AddComplexProperty(PropertyInfo) | Adds a new EDM complex property to this entity type. (Overrides StructuralTypeConfiguration.AddComplexProperty(PropertyInfo).) |
|
AddNavigationProperty(PropertyInfo, EdmMultiplicity) | Adds a new EDM navigation property to this entity type. |
|
AddProperty(PropertyInfo) | Adds a new EDM primitive property to this entity type. (Overrides StructuralTypeConfiguration.AddProperty(PropertyInfo).) |
|
DerivesFrom(EntityTypeConfiguration) | Sets the base type of this entity type. |
|
DerivesFromNothing() | Sets the base type of this entity type to null meaning that this entity type does not derive from anything. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
HasKey(PropertyInfo) | Configures the key property(s) for this entity type. |
|
MemberwiseClone() | (Inherited from Object.) |
|
RemoveKey(PrimitivePropertyConfiguration) | Removes the property from the entity keys collection. |
|
RemoveProperty(PropertyInfo) | Removes the property from the entity. (Overrides StructuralTypeConfiguration.RemoveProperty(PropertyInfo).) |
|
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