EntityTypeConfiguration Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an IEdmEntityType that can be built using ODataModelBuilder.
public class EntityTypeConfiguration : Microsoft.AspNet.OData.Builder.StructuralTypeConfiguration
type EntityTypeConfiguration = class
inherit StructuralTypeConfiguration
Public Class EntityTypeConfiguration
Inherits StructuralTypeConfiguration
- Inheritance
Constructors
EntityTypeConfiguration() |
Initializes a new instance of the EntityTypeConfiguration class. |
EntityTypeConfiguration(ODataModelBuilder, Type) |
Initializes a new instance of the EntityTypeConfiguration class. |
Properties
AddedExplicitly |
Gets or sets a value that is |
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. (Inherited from StructuralTypeConfiguration) |
BaseTypeInternal |
Gets the base type of this structural type. (Inherited from StructuralTypeConfiguration) |
ClrType |
Gets the backing CLR Type. (Inherited from StructuralTypeConfiguration) |
DynamicPropertyDictionary |
Gets the CLR property info of the dynamic property dictionary on this structural type. (Inherited from StructuralTypeConfiguration) |
EnumKeys |
Gets the collection of enum keys for this entity type. |
ExplicitProperties |
Gets the collection of explicitly added properties. (Inherited from StructuralTypeConfiguration) |
FullName |
Gets the full name of this edm type. (Inherited from StructuralTypeConfiguration) |
HasStream |
Gets or sets a value indicating whether this type is a media type. |
IgnoredProperties |
Gets the properties from the backing CLR type that are to be ignored on this edm type. (Inherited from StructuralTypeConfiguration) |
InstanceAnnotationsContainer |
Gets the CLR property info of the instance annotations dictionary on this structural type. (Inherited from StructuralTypeConfiguration) |
IsAbstract |
Gets or sets a value indicating whether this type is abstract. (Inherited from StructuralTypeConfiguration) |
IsOpen |
Gets a value indicating whether this type is open or not. (Inherited from StructuralTypeConfiguration) |
Keys |
Gets the collection of keys for this entity type. |
Kind |
Gets the EdmTypeKind of this IEdmTypeConfiguration |
ModelBuilder |
The ODataModelBuilder. (Inherited from StructuralTypeConfiguration) |
Name |
Gets or sets the name of this EDM type. (Inherited from StructuralTypeConfiguration) |
Namespace |
Gets or sets the namespace of this EDM type. (Inherited from StructuralTypeConfiguration) |
NavigationProperties |
Gets the collection of NavigationPropertyConfiguration of this entity type. (Inherited from StructuralTypeConfiguration) |
Properties |
Gets the declared properties on this edm type. (Inherited from StructuralTypeConfiguration) |
QueryConfiguration |
Gets or sets the QueryConfiguration. (Inherited from StructuralTypeConfiguration) |
RemovedProperties |
Gets the collection of explicitly removed properties. (Inherited from StructuralTypeConfiguration) |
SupportsInstanceAnnotations |
Gets a value indicating whether this type has instance annotations or not. (Inherited from StructuralTypeConfiguration) |
Methods
Abstract() |
Marks this entity type as abstract. |
AddCollectionProperty(PropertyInfo) |
Adds a collection property to this edm type. (Inherited from StructuralTypeConfiguration) |
AddComplexProperty(PropertyInfo) |
Adds a complex property to this edm type. (Inherited from StructuralTypeConfiguration) |
AddContainedNavigationProperty(PropertyInfo, EdmMultiplicity) |
Adds a contained EDM navigation property to this entity type. (Inherited from StructuralTypeConfiguration) |
AddDynamicPropertyDictionary(PropertyInfo) |
Adds the property info of the dynamic properties to this structural type. (Inherited from StructuralTypeConfiguration) |
AddEnumProperty(PropertyInfo) |
Adds an enum property to this edm type. (Inherited from StructuralTypeConfiguration) |
AddInstanceAnnotationContainer(PropertyInfo) |
Adds the property info of the instanceannotation to this structural type. (Inherited from StructuralTypeConfiguration) |
AddNavigationProperty(PropertyInfo, EdmMultiplicity) |
Adds a non-contained EDM navigation property to this entity type. (Inherited from StructuralTypeConfiguration) |
AddProperty(PropertyInfo) |
Adds a primitive property to this edm type. (Inherited from StructuralTypeConfiguration) |
DerivesFrom(EntityTypeConfiguration) |
Sets the base type of this entity type. |
DerivesFromNothing() |
Sets the base type of this entity type to |
HasKey(PropertyInfo) |
Configures the key property(s) for this entity type. |
MediaType() |
Marks this entity type as media type. |
RemoveKey(EnumPropertyConfiguration) |
Removes the enum property from the entity enum keys collection. |
RemoveKey(PrimitivePropertyConfiguration) |
Removes the property from the entity keys collection. |
RemoveProperty(PropertyInfo) |
Removes the property from the entity. |