Language

ModelValidator.IsValidIdentifier(String) Method

Definition

Returns true if the given name only uses letters, ASCII digits and underscores and does not start with a digit; that is, if it can be used as-is as an identifier in generated code.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public static bool IsValidIdentifier(string? name);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
static member IsValidIdentifier : string -> bool
Public Shared Function IsValidIdentifier (name As String) As Boolean

Parameters

name
String

Returns

Attributes

Applies to