MetadataWorkspaceExtensions.IsComplexProperty Method
Determines whether the type of the specified property is a complex type.
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 IsComplexProperty ( _
property As EdmProperty _
) As Boolean
'Usage
Dim property As EdmProperty
Dim returnValue As Boolean
returnValue = property.IsComplexProperty()
public static bool IsComplexProperty(
this EdmProperty property
)
[ExtensionAttribute]
public:
static bool IsComplexProperty(
EdmProperty^ property
)
public static function IsComplexProperty(
property : EdmProperty
) : boolean
Parameters
- property
Type: System.Data.Metadata.Edm.EdmProperty
A property in the conceptual model.
Return Value
Type: System.Boolean
True if the specified property is a ComplexType; false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type EdmProperty. 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 IsComplexProperty() 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)