EdmExtension.GetInvalidCharsException Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Returns a localized exception from the database generation process if the name supplied in the store schema definition language (SSDL) contains invalid characters for the target database.

Namespace:  Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

Syntax

'Declaration
Public Shared Function GetInvalidCharsException ( _
    userInput As String _
) As String
'Usage
Dim userInput As String 
Dim returnValue As String 

returnValue = EdmExtension.GetInvalidCharsException(userInput)
public static string GetInvalidCharsException(
    string userInput
)
public:
static String^ GetInvalidCharsException(
    String^ userInput
)
static member GetInvalidCharsException : 
        userInput:string -> string
public static function GetInvalidCharsException(
    userInput : String
) : String

Parameters

  • userInput
    Type: System.String
    The object name that contains invalid characters.

Return Value

Type: System.String
A localized exception from the database generation process if the name supplied in the store schema definition language (SSDL) contains invalid characters for the target database

See Also

Reference

EdmExtension Class

Microsoft.Data.Entity.Design.DatabaseGeneration Namespace