Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MetadataWorkspaceExtensions Class

Provides extension methods for navigating and querying item collections in the System.Data.Metadata.Edm namespace.

System.Object
  Microsoft.Data.Entity.Design.DatabaseGeneration.MetadataWorkspaceExtensions

Namespace:  Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
public static class MetadataWorkspaceExtensions

The MetadataWorkspaceExtensions type exposes the following members.

  NameDescription
Public methodStatic memberGetAllAssociationsReturns an enumerable collection of all AssociationType objects in the specified ItemCollection.
Public methodStatic memberGetAllAssociationSetsReturns an enumerable collection of all AssociationSet objects in the specified ItemCollection.
Public methodStatic memberGetAllEntitySetsReturns an enumerable collection of all EntitySet objects in the specified ItemCollection.
Public methodStatic memberGetAllEntityTypesReturns an enumerable collection of all EntityType objects in the specified ItemCollection.
Public methodStatic memberGetAllReferentialConstraintsReturns an enumerable collection of all ReferentialConstraint objects in the specified StoreItemCollection.
Public methodStatic memberGetAssociationReturns the AssociationType object in the specified AssociationSet.
Public methodStatic memberGetContainingTypesReturns a collection of all EntityType objects within the specified EntitySet and ItemCollection.
Public methodStatic memberGetDbProviderManifestReturns the DbProviderManifest for the provider that has the specified invariant name and manifest token.
Public methodStatic memberGetDependentEndReturns the dependent end of the specified AssociationType object.
Public methodStatic memberGetDependentPropertyReturns the property on the dependent end of the specified referential constraint that corresponds to the property on the principal end.
Public methodStatic memberGetEnd1Returns the first AssociationEndMember in the AssociationEndMembers property of the specified AssociationType.
Public methodStatic memberGetEnd2Returns the second AssociationEndMember in the AssociationEndMembers property of the specified AssociationType.
Public methodStatic memberGetEntityContainerNameReturns the value of the Name attribute of the EntityContainer element in the specified ItemCollection.
Public methodStatic memberGetEntityTypeReturns the EntityType for the specified RelationshipEndMember.
Public methodStatic memberGetKeyProperties(AssociationEndMember)Returns the key properties of the EntityType that is associated with the specified AssociationEndMember.
Public methodStatic memberGetKeyProperties(EntityType)Returns the key properties of the specified EntityType.
Public methodStatic memberGetNamespaceReturns the namespace name of the first StructuralType found in the specified ItemCollection.
Public methodStatic memberGetOnDeleteReturns the value of the OnDelete element for the specified association End.
Public methodStatic memberGetOtherEndReturns the other association End for the specified association End.
Public methodStatic memberGetPrincipalEndReturns the principal end of the specified association.
Public methodStatic memberGetRootOrSelfReturns the entity type at the root of an inheritance hierarchy.
Public methodStatic memberGetSchemaNameReturns the schema name for the specified EntitySet.
Public methodStatic memberGetStoreGeneratedPatternValueReturns the value of the StoreGeneratedPattern annotation or facet of a property in the conceptual or storage model.
Public methodStatic memberGetStoreTypeReturns the storage type that corresponds to the specified EdmMember by examining the specified DbProviderManifest.
Public methodStatic memberGetTableNameReturns the name of the table that corresponds to the specified EntitySet.
Public methodStatic memberInferSsdlFacetsForCsdlPropertyInfers Facets for a property in the storage model based on the corresponding property in the conceptual model.
Public methodStatic memberIsComplexPropertyDetermines whether the type of the specified property is a complex type.
Public methodStatic memberIsDerivedTypeDetermines whether the specified entity type is a derived type.
Public methodStatic memberIsJoinTableDetermines whether the specified storage model entity type represents a join table in the database.
Public methodStatic memberIsManyToManyDetermines if the specified association is a many-to-many (*:*) association.
Public methodStatic memberIsPKToPKDetermines if the ends of the specified association involve only primary keys.
Public methodStatic memberToStoreTypeTranslates the conceptual model data type of the specified property to a SQL Server data type.
Public methodStatic memberVisitComplexPropertyExecutes the MetadataWorkspaceExtensions.ScalarInComplexPropertyVisitorDelegate on each scalar property of the specified complex type property.
Top

Methods in the MetadataWorkspaceExtensions class are used by the Generate Database Wizard when generating a database from a conceptual model.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.