EntityType Class

Definition

Represents the structure of an EntitySet. In the conceptual-model this represents the shape and structure of an entity. In the store model this represents the structure of a table. To change the Schema and Table name use EntitySet.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")]
public class EntityType : System.Data.Entity.Core.Metadata.Edm.EntityTypeBase
type EntityType = class
    inherit EntityTypeBase
Public Class EntityType
Inherits EntityTypeBase
Inheritance
Attributes

Properties

Abstract

Gets a value indicating whether this type is abstract or not.

(Inherited from EdmType)
BaseType

Gets the base type of this type.

(Inherited from EdmType)
BuiltInTypeKind

Gets the built-in type kind for this EntityType.

DeclaredMembers

Gets the collection of declared members for the entity type.

DeclaredNavigationProperties

Gets the declared navigation properties associated with the entity type.

DeclaredProperties

Gets the list of declared properties for the entity type.

Documentation

Gets or sets the documentation associated with this type.

(Inherited from MetadataItem)
FullName

Gets the full name of this type.

(Inherited from EdmType)
KeyMembers

Gets the list of all the key members for the current entity or relationship type.

(Inherited from EntityTypeBase)
KeyProperties

Gets the list of all the key properties for this entity type.

(Inherited from EntityTypeBase)
Members

Gets the list of members on this type.

(Inherited from StructuralType)
MetadataProperties

Gets the list of properties of the current type.

(Inherited from MetadataItem)
Name

Gets the name of this type.

(Inherited from EdmType)
NamespaceName

Gets the namespace of this type.

(Inherited from EdmType)
NavigationProperties

Gets the navigation properties of this EntityType.

Properties

Gets the list of properties for this EntityType.

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
AddKeyMember(EdmMember)

Adds the specified property to the list of keys for the current entity.

(Inherited from EntityTypeBase)
AddMember(EdmMember)

Adds a member to this type

(Inherited from StructuralType)
AddNavigationProperty(NavigationProperty)

Adds the specified navigation property to the members of this type. The navigation property is added regardless of the read-only flag.

Create(String, String, DataSpace, EntityType, IEnumerable<String>, IEnumerable<EdmMember>, IEnumerable<MetadataProperty>)

The factory method for constructing the EntityType object.

Create(String, String, DataSpace, IEnumerable<String>, IEnumerable<EdmMember>, IEnumerable<MetadataProperty>)

The factory method for constructing the EntityType object.

GetCollectionType()

Returns an instance of the CollectionType whose element type is this type.

(Inherited from EdmType)
GetReferenceType()

Returns a RefType object that references this EntityType .

RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)
RemoveMember(EdmMember)

Removes the specified key member from the collection.

(Inherited from EntityTypeBase)
ToString()

Returns the full name of this type.

(Inherited from EdmType)

Applies to