MetadataWorkspaceExtensions Class
Extension methods for the MetadataWorkspace API
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Name | Description | |
---|---|---|
![]() ![]() | GetAllAssociations(ItemCollection) | Retrieves an enumerable collection of all AssociationType elements in this ItemCollection |
![]() ![]() | GetAllAssociationSets(ItemCollection) | Retrieves an enumerable collection of all AssociationSet elements in this ItemCollection |
![]() ![]() | GetAllEntitySets(ItemCollection) | Retrieves an enumerable collection of all EntitySet elements in this ItemCollection |
![]() ![]() | GetAllEntityTypes(ItemCollection) | Retrieves an enumerable collection of all EntityType elements in this ItemCollection |
![]() ![]() | GetAllReferentialConstraints(StoreItemCollection) | Retrieves an enumerable collection of all ReferentialConstraints in this SSDL/StoreItemCollection |
![]() ![]() | GetAssociation(AssociationSet) | Returns the Association in an AssociationSet |
![]() ![]() | GetContainingTypes(EntitySet, ItemCollection) | Get all EntityTypes within this EntitySet |
![]() ![]() | GetDependentEnd(AssociationType) | Retrieves the dependent end of this association, given the following rules in order of priority: 1. If there is a referential constraint defined on the association, this returns the DependentEnd. 2. If the association's multiplicity is 1:1 and OnDelete='Cascade' is defined on the first end, then this returns the second end. If OnDelete='Cascade' is not defined on the first end, this returns the first end. 3. In a 1:* or 0..1:* association, this returns the end with the * multiplicity. 4. In a 0..1:1 association, this returns the end with the 0..1 multiplicity. |
![]() ![]() | GetDependentProperty(EdmProperty, ReferentialConstraint) | If this is a property that participates in the principal end of a referential constraint, this method will return the corresponding property on the dependent end. |
![]() ![]() | GetEnd1(AssociationType) | Returns the first AssociationEndMember in the AssociationEndMembers property of the specified AssociationType. |
![]() ![]() | GetEnd2(AssociationType) | Returns the second AssociationEndMember in the AssociationEndMembers property of the specified AssociationType. |
![]() ![]() | GetEntityContainerName(ItemCollection) | Retrieves the 'Name' attribute of the <EntityContainer/> element in this ItemCollection. |
![]() ![]() | GetEntityType(RelationshipEndMember) | Retrieves the EntityType on an AssociationEnd. |
![]() ![]() | GetKeyProperties(AssociationEndMember) | Gets the key properties declared directly on the EntityType within an AssociationEnd |
![]() ![]() | GetKeyProperties(EntityType) | Gets the key properties declared directly on the EntityType |
![]() ![]() | GetNamespace(ItemCollection) | Retrieves the namespace of this ItemCollection by examining the first-found StructuralType |
![]() ![]() | GetOnDelete(AssociationEndMember) | This will get the value of the OnDelete element on the AssociationEnd 1. This will return 'None' if the end and its sibling end have 'Cascade' specified 2. This will return 'None' if the end's multiplicity is Many (*) |
![]() ![]() | GetOtherEnd(AssociationType, AssociationEndMember) | Given an AssociationEndMember of this Association, this method will return the other end participating in the association |
![]() ![]() | GetPrincipalEnd(AssociationType) | Retrieves the principal end of this association |
![]() ![]() | GetRootOrSelf(EntityType) | Returns this EntityType if it has no base type. Otherwise, returns the top-most base type. |
![]() ![]() | GetSchemaName(EntitySet) | Retrieve the schema name for this EntitySet, stored in its MetadataProperties |
![]() ![]() | GetStoreGeneratedPatternValue(EdmMember, Version, DataSpace) | Obtains the StoreGeneratedPattern value of an EdmProperty, given a target version and DataSpace |
![]() ![]() | GetStoreType(EdmMember, DbProviderManifest) | Get the StoreType from an EdmMember's EdmType through the DbProviderManifest |
![]() ![]() | GetTableName(EntitySet) | Retrieve the table name for this EntitySet, stored in its MetadataProperties |
![]() ![]() | InferSsdlFacetsForCsdlProperty(EdmProperty, DbProviderManifest) | Infer SSDL facets from a CSDL property |
![]() ![]() | IsComplexProperty(EdmProperty) | Determines if this property is a ComplexProperty; that is, its type is a ComplexType |
![]() ![]() | IsDerivedType(EntityType) | Determines whether the specified entity type is a derived type. |
![]() ![]() | IsJoinTable(EntityType, 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 |
![]() ![]() | IsManyToMany(AssociationType) | Determines if an association's multiplicity is *:* |
![]() ![]() | IsPKToPK(AssociationType) | Determines if an association is across solely primary keys |
![]() ![]() | ToStoreType(EdmProperty) | Translate an EDM Type to a SQL type, taking into account facets. Note that certain facets were already taken into account when we obtained them from the DbProviderManifest (FixedLength, Unicode) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.