EntityType Class

 

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.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)


[SuppressMessageAttribute("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")]
public class EntityType : EntityTypeBase

NameDescription
System_CAPS_pubpropertyAbstract

Gets a value indicating whether this type is abstract or not.(Inherited from EdmType.)

System_CAPS_pubpropertyBaseType

Gets the base type of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyBuiltInTypeKind

Gets the built-in type kind for this EntityType.(Overrides MetadataItem.BuiltInTypeKind.)

System_CAPS_pubpropertyDeclaredMembers

Gets the collection of declared members for the entity type.

System_CAPS_pubpropertyDeclaredNavigationProperties

Gets the declared navigation properties associated with the entity type.

System_CAPS_pubpropertyDeclaredProperties

Gets the list of declared properties for the entity type.

System_CAPS_pubpropertyDocumentation

Gets or sets the documentation associated with this type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyFullName

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

System_CAPS_pubpropertyKeyMembers

Gets the list of all the key members for the current entity or relationship type.(Inherited from EntityTypeBase.)

System_CAPS_pubpropertyKeyProperties

Gets the list of all the key properties for this entity type.(Inherited from EntityTypeBase.)

System_CAPS_pubpropertyMembers

Gets the list of members on this type.(Inherited from StructuralType.)

System_CAPS_pubpropertyMetadataProperties

Gets the list of properties of the current type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyName

Gets the name of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyNamespaceName

Gets the namespace of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyNavigationProperties

Gets the navigation properties of this EntityType.

System_CAPS_pubpropertyProperties

Gets the list of properties for this EntityType.

NameDescription
System_CAPS_pubmethodAddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.(Inherited from MetadataItem.)

System_CAPS_pubmethodAddKeyMember(EdmMember)

Adds the specified property to the list of keys for the current entity.(Inherited from EntityTypeBase.)

System_CAPS_pubmethodAddMember(EdmMember)

Adds a member to this type(Inherited from StructuralType.)

System_CAPS_pubmethodAddNavigationProperty(NavigationProperty)

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

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

The factory method for constructing the EntityType object.

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

The factory method for constructing the EntityType object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetCollectionType()

Returns an instance of the CollectionType whose element type is this type.(Inherited from EdmType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetReferenceType()

Returns a RefType object that references this EntityType .

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveAnnotation(String)

Removes an annotation with the specified name.(Inherited from MetadataItem.)

System_CAPS_pubmethodRemoveMember(EdmMember)

Removes the specified key member from the collection.(Inherited from EntityTypeBase.)

System_CAPS_pubmethodToString()

Returns the full name of this type.(Inherited from EdmType.)

NameDescription
System_CAPS_pubmethodGetKeyProperties()

Overloaded. Gets the key properties declared directly on the EntityType(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodGetRootOrSelf()

Returns this EntityType if it has no base type. Otherwise, returns the top-most base type.(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodIsDerivedType()

Determines whether the specified entity type is a derived type.(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodIsJoinTable(StoreItemCollection)

We can infer that something is a join table in the SSDL if: 1. There are two associations originating from it 2. The two ends on the table are * 3. The other ends on the associations are 1 4. The number of properties in the table is equal to the sum of all the key properties on the other ends of both associations 5. All properties in the table are key properties(Defined by MetadataWorkspaceExtensions.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.