Class GeneratorUtils
Facilitates various SQL-construction and logging tasks
Inheritance
System.Object
GeneratorUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data.Access.MySql
Assembly: Azos.MySql.dll
Syntax
public static class GeneratorUtils
Methods
HasFieldInNamedKey(String, IDataStoreKey)
Declaration
public static bool HasFieldInNamedKey(string fieldName, IDataStoreKey key)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | |
IDataStoreKey | key |
Returns
Type | Description |
---|---|
System.Boolean |
KeyToWhere(IDataStoreKey, MySqlParameterCollection)
Declaration
public static string KeyToWhere(IDataStoreKey key, MySqlParameterCollection parameters)
Parameters
Type | Name | Description |
---|---|---|
IDataStoreKey | key | |
MySqlParameterCollection | parameters |
Returns
Type | Description |
---|---|
System.String |
LogCommand(MySQLDataStoreBase, String, MySqlCommand, Exception)
Declaration
public static void LogCommand(MySQLDataStoreBase store, string from, MySqlCommand cmd, Exception error)
Parameters
Type | Name | Description |
---|---|---|
MySQLDataStoreBase | store | |
System.String | from | |
MySqlCommand | cmd | |
System.Exception | error |