MetadataWorkspaceExtensions Class
Entity Framework 5.0
Provides extension methods for navigating and querying item collections in the System.Data.Metadata.Edm namespace.
Namespace: Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
The MetadataWorkspaceExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | GetAllAssociations | Returns an enumerable collection of all AssociationType objects in the specified ItemCollection. |
![]() ![]() | GetAllAssociationSets | Returns an enumerable collection of all AssociationSet objects in the specified ItemCollection. |
![]() ![]() | GetAllEntitySets | Returns an enumerable collection of all EntitySet objects in the specified ItemCollection. |
![]() ![]() | GetAllEntityTypes | Returns an enumerable collection of all EntityType objects in the specified ItemCollection. |
![]() ![]() | GetAllReferentialConstraints | Returns an enumerable collection of all ReferentialConstraint objects in the specified StoreItemCollection. |
![]() ![]() | GetAssociation | Returns the AssociationType object in the specified AssociationSet. |
![]() ![]() | GetContainingTypes | Returns a collection of all EntityType objects within the specified EntitySet and ItemCollection. |
![]() ![]() | GetDbProviderManifest | Returns the DbProviderManifest for the provider that has the specified invariant name and manifest token. |
![]() ![]() | GetDependentEnd | Returns the dependent end of the specified AssociationType object. |
![]() ![]() | GetDependentProperty | Returns the property on the dependent end of the specified referential constraint that corresponds to the property on the principal end. |
![]() ![]() | GetEnd1 | Returns the first AssociationEndMember in the AssociationEndMembers property of the specified AssociationType. |
![]() ![]() | GetEnd2 | Returns the second AssociationEndMember in the AssociationEndMembers property of the specified AssociationType. |
![]() ![]() | GetEntityContainerName | Returns the value of the Name attribute of the EntityContainer element in the specified ItemCollection. |
![]() ![]() | GetEntityType | Returns the EntityType for the specified RelationshipEndMember. |
![]() ![]() | GetKeyProperties(AssociationEndMember) | Returns the key properties of the EntityType that is associated with the specified AssociationEndMember. |
![]() ![]() | GetKeyProperties(EntityType) | Returns the key properties of the specified EntityType. |
![]() ![]() | GetNamespace | Returns the namespace name of the first StructuralType found in the specified ItemCollection. |
![]() ![]() | GetOnDelete | Returns the value of the OnDelete element for the specified association End. |
![]() ![]() | GetOtherEnd | Returns the other association End for the specified association End. |
![]() ![]() | GetPrincipalEnd | Returns the principal end of the specified association. |
![]() ![]() | GetRootOrSelf | Returns the entity type at the root of an inheritance hierarchy. |
![]() ![]() | GetSchemaName | Returns the schema name for the specified EntitySet. |
![]() ![]() | GetStoreGeneratedPatternValue | Returns the value of the StoreGeneratedPattern annotation or facet of a property in the conceptual or storage model. |
![]() ![]() | GetStoreType | Returns the storage type that corresponds to the specified EdmMember by examining the specified DbProviderManifest. |
![]() ![]() | GetTableName | Returns the name of the table that corresponds to the specified EntitySet. |
![]() ![]() | InferSsdlFacetsForCsdlProperty | Infers Facets for a property in the storage model based on the corresponding property in the conceptual model. |
![]() ![]() | IsComplexProperty | Determines whether the type of the specified property is a complex type. |
![]() ![]() | IsDerivedType | Determines whether the specified entity type is a derived type. |
![]() ![]() | IsJoinTable | Determines whether the specified storage model entity type represents a join table in the database. |
![]() ![]() | IsManyToMany | Determines if the specified association is a many-to-many (*:*) association. |
![]() ![]() | IsPKToPK | Determines if the ends of the specified association involve only primary keys. |
![]() ![]() | ToStoreType | Translates the conceptual model data type of the specified property to a SQL Server data type. |
![]() ![]() | VisitComplexProperty | Executes the MetadataWorkspaceExtensions.ScalarInComplexPropertyVisitorDelegate on each scalar property of the specified complex type property. |
Methods in the MetadataWorkspaceExtensions class are used by the Generate Database Wizard when generating a database from a conceptual model.
Show:
