MetadataWorkspaceExtensions.GetSchemaName Method
Returns the schema name for the specified EntitySet.
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 GetSchemaName ( _
entitySet As EntitySet _
) As String
'Usage
Dim entitySet As EntitySet
Dim returnValue As String
returnValue = entitySet.GetSchemaName()
public static string GetSchemaName(
this EntitySet entitySet
)
[ExtensionAttribute]
public:
static String^ GetSchemaName(
EntitySet^ entitySet
)
public static function GetSchemaName(
entitySet : EntitySet
) : String
Parameters
- entitySet
Type: System.Data.Metadata.Edm.EntitySet
An entity set.
Return Value
Type: System.String
The schema name for the specified EntitySet.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type EntitySet. 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 GetSchemaName() 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)