EdmExtension.CreateAndValidateEdmItemCollection Method (String, Version)
Converts a string representation of conceptual schema definition language (CSDL) to an EdmItemCollection and validates it.
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
[SuppressMessageAttribute("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")] [SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")] [SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")] public static EdmItemCollection CreateAndValidateEdmItemCollection( string csdl, Version targetFrameworkVersion )
Parameters
- csdl
-
Type:
System.String
Conceptual model metadata as a string.
- targetFrameworkVersion
-
Type:
System.Version
The targeted version of the Entity Framework.
Return Value
Type: System.Data.Entity.Core.Metadata.Edm.EdmItemCollectionCSDL as an EdmItemCollection.