MetadataWorkspaceExtensions.GetEntityType Method
Returns the EntityType for the specified RelationshipEndMember.
Namespace: Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetEntityType ( _
end As RelationshipEndMember _
) As EntityType
'Usage
Dim end As RelationshipEndMember
Dim returnValue As EntityType
returnValue = end.GetEntityType()
public static EntityType GetEntityType(
this RelationshipEndMember end
)
[ExtensionAttribute]
public:
static EntityType^ GetEntityType(
RelationshipEndMember^ end
)
public static function GetEntityType(
end : RelationshipEndMember
) : EntityType
Parameters
- end
Type: System.Data.Metadata.Edm.RelationshipEndMember
One End of an association.
Return Value
Type: System.Data.Metadata.Edm.EntityType
The EntityType for the specified RelationshipEndMember.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type RelationshipEndMember. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The GetEntityType() method is used by the Generate Database Wizard when generating a database from a conceptual model.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
MetadataWorkspaceExtensions Class
MetadataWorkspaceExtensions Members
Microsoft.Data.Entity.Design.DatabaseGeneration Namespace
Other Resources
How to: Generate a Database from a Conceptual Model (Entity Data Model Tools)