MetadataWorkspaceExtensions.InferSsdlFacetsForCsdlProperty 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
从 CSDL 属性推断 SSDL 方面
命名空间: Microsoft.Data.Entity.Design.DatabaseGeneration
程序集: Microsoft.Data.Entity.Design.DatabaseGeneration(在 Microsoft.Data.Entity.Design.DatabaseGeneration.dll 中)
语法
声明
<ExtensionAttribute> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "csdl")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Csdl")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Ssdl")> _
Public Shared Function InferSsdlFacetsForCsdlProperty ( _
csdlProperty As EdmProperty, _
providerManifest As DbProviderManifest _
) As IEnumerable(Of Facet)
用法
Dim csdlProperty As EdmProperty
Dim providerManifest As DbProviderManifest
Dim returnValue As IEnumerable(Of Facet)
returnValue = csdlProperty.InferSsdlFacetsForCsdlProperty(providerManifest)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")]
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Csdl")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ssdl")]
public static IEnumerable<Facet> InferSsdlFacetsForCsdlProperty(
this EdmProperty csdlProperty,
DbProviderManifest providerManifest
)
[ExtensionAttribute]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"csdl")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Csdl")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Ssdl")]
public:
static IEnumerable<Facet^>^ InferSsdlFacetsForCsdlProperty(
EdmProperty^ csdlProperty,
DbProviderManifest^ providerManifest
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Csdl")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ssdl")>]
static member InferSsdlFacetsForCsdlProperty :
csdlProperty:EdmProperty *
providerManifest:DbProviderManifest -> IEnumerable<Facet>
public static function InferSsdlFacetsForCsdlProperty(
csdlProperty : EdmProperty,
providerManifest : DbProviderManifest
) : IEnumerable<Facet>
参数
- csdlProperty
类型:System.Data.Entity.Core.Metadata.Edm.EdmProperty
CSDL 属性。
- providerManifest
类型:System.Data.Entity.Core.Common.DbProviderManifest
要使用的 DbProviderManifest。
返回值
类型:System.Collections.Generic.IEnumerable<Facet>
方面的列表。
使用说明
在 Visual Basic 和 C# 中,可以在 EdmProperty 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.113)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.113)。