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: NFX.DataAccess.MySQL
Assembly: NFX.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(StoreLogLevel, String, MySqlCommand, Exception)
Declaration
public static void LogCommand(StoreLogLevel level, string from, MySqlCommand cmd, Exception error)
Parameters
| Type | Name | Description |
|---|---|---|
| StoreLogLevel | level | |
| System.String | from | |
| MySqlCommand | cmd | |
| System.Exception | error |