13 lines
290 B
C#
13 lines
290 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace Database.Common
|
|
{
|
|
internal class Validations
|
|
{
|
|
public static bool IsValidSchemaName(string schema)
|
|
{
|
|
return !string.IsNullOrEmpty(schema) && Regex.IsMatch(schema, "^[a-zA-Z0-9_]+$");
|
|
}
|
|
|
|
}
|
|
}
|