Class SqlUtilities
Assembly: Estrelica.Utility.dll
Syntax
[DoNotObfuscateType]
public static class SqlUtilities
Methods
Declaration
public static string DatabaseLabel(string connectionString)
Parameters
Returns
Declaration
public static string DatabaseName(string connectionString)
Parameters
Returns
Declaration
public static bool IsAssignableFromSqlType(this Type toType, SqlDbType fromType)
Parameters
Returns
Declaration
public static bool IsAssignableToSqlType(this Type fromType, SqlDbType toType)
Parameters
Returns
Declaration
public static string SanitizeIdentifier(string identifier)
Parameters
Returns
Declaration
public static string ServerName(string connectionString)
Parameters
Returns
Declaration
public static (string TableName, string SchemaName, string DatabaseName) SplitDatabaseIdentifier(string identifier)
Parameters
Returns
Declaration
public static void SplitDatabaseIdentifier(string identifier, out string tableName, out string schemaName)
Parameters
Declaration
public static void SplitDatabaseIdentifier(string identifier, out string tableName, out string schemaName, out string databaseName)
Parameters
Declaration
public static string StripIdentifier(string identifier)
Parameters
Returns