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.MsSql
Assembly: Azos.MsSql.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, SqlParameterCollection)
Declaration
public static string KeyToWhere(IDataStoreKey key, SqlParameterCollection parameters)
Parameters
Type | Name | Description |
---|---|---|
IDataStoreKey | key | |
System.Data.SqlClient.SqlParameterCollection | parameters |
Returns
Type | Description |
---|---|
System.String |
LogCommand(MsSqlDataStoreBase, String, SqlCommand, Exception)
Declaration
public static void LogCommand(MsSqlDataStoreBase store, string from, SqlCommand cmd, Exception error)
Parameters
Type | Name | Description |
---|---|---|
MsSqlDataStoreBase | store | |
System.String | from | |
System.Data.SqlClient.SqlCommand | cmd | |
System.Exception | error |