ModelValidator.IsValidIdentifier(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne true si le nom donné utilise uniquement des lettres, des chiffres ASCII et des traits de soulignement et ne commence pas par un chiffre ; autrement dit, s’il peut être utilisé as-is comme identificateur dans le code généré.
[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
Paramètres
- name
- String
Retours
- Attributs