MetadataWorkspaceExtensions.InferSsdlFacetsForCsdlProperty Method
Infers Facets for a property in the storage model based on the corresponding property in the conceptual model.
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 InferSsdlFacetsForCsdlProperty ( _
csdlProperty As EdmProperty, _
providerManifest As DbProviderManifest _
) As IEnumerable(Of Facet)
'Usage
Dim csdlProperty As EdmProperty
Dim providerManifest As DbProviderManifest
Dim returnValue As IEnumerable(Of Facet)
returnValue = csdlProperty.InferSsdlFacetsForCsdlProperty(providerManifest)
public static IEnumerable<Facet> InferSsdlFacetsForCsdlProperty(
this EdmProperty csdlProperty,
DbProviderManifest providerManifest
)
[ExtensionAttribute]
public:
static IEnumerable<Facet^>^ InferSsdlFacetsForCsdlProperty(
EdmProperty^ csdlProperty,
DbProviderManifest^ providerManifest
)
public static function InferSsdlFacetsForCsdlProperty(
csdlProperty : EdmProperty,
providerManifest : DbProviderManifest
) : IEnumerable<Facet>
Parameters
- csdlProperty
Type: System.Data.Metadata.Edm.EdmProperty
The property in the conceptual model.
- providerManifest
Type: System.Data.Common.DbProviderManifest
The storage provider that is being used.
Return Value
Type: System.Collections.Generic.IEnumerable<Facet>
A list of Facets for a property in the storage model based on the corresponding property in the conceptual model.
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 InferSsdlFacetsForCsdlProperty() 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)