Class SqlSyntaxHelper
Inheritance
SqlSyntaxHelper
Assembly: DotNetHelper.ObjectToSql.dll
Syntax
public class SqlSyntaxHelper
Constructors
|
Improve this Doc
View Source
SqlSyntaxHelper(DataBaseType)
Declaration
public SqlSyntaxHelper(DataBaseType type)
Parameters
Properties
|
Improve this Doc
View Source
ConstAt
Declaration
public char ConstAt { get; }
Property Value
|
Improve this Doc
View Source
ConstCloseParens
Declaration
public char ConstCloseParens { get; }
Property Value
|
Improve this Doc
View Source
ConstInsertInto
Declaration
public string ConstInsertInto { get; }
Property Value
|
Improve this Doc
View Source
ConstMySqlOnDupeKeyUpdate
Declaration
public string ConstMySqlOnDupeKeyUpdate { get; }
Property Value
|
Improve this Doc
View Source
ConstNull
Declaration
public string ConstNull { get; }
Property Value
|
Improve this Doc
View Source
ConstOpenParens
Declaration
public char ConstOpenParens { get; }
Property Value
|
Improve this Doc
View Source
ConstSqlServerSelectTop1
Declaration
public string ConstSqlServerSelectTop1 { get; }
Property Value
|
Improve this Doc
View Source
ConstValues
Declaration
public string ConstValues { get; }
Property Value
|
Improve this Doc
View Source
DataBaseType
Declaration
public DataBaseType DataBaseType { get; }
Property Value
|
Improve this Doc
View Source
EnclosedValueLookup
Declaration
public Dictionary<Type, string> EnclosedValueLookup { get; }
Property Value
Methods
|
Improve this Doc
View Source
BuildIfExistStatement(String, String, String)
Declaration
public string BuildIfExistStatement(string selectStatement, string onTrueSql, string onFalseSql)
Parameters
Returns
|
Improve this Doc
View Source
BuildTableExistStatement(SqlTable, String, String)
Declaration
public string BuildTableExistStatement(SqlTable sqlTable, string onTrueSql, string onFalseSql)
Parameters
Returns
|
Improve this Doc
View Source
ConvertParameterSqlToReadable<T>(List<T>, String, Encoding)
Converts a A parameterized query to a readable query.
Declaration
public string ConvertParameterSqlToReadable<T>(List<T> parameters, string query, Encoding encoding)
where T : DbParameter
Parameters
Type |
Name |
Description |
List<T> |
parameters |
a list of dbparameters that is included in your parameterized query
|
String |
query |
A parameterized query
|
Encoding |
encoding |
Only used for properties of the type byte[]
|
Returns
Type Parameters
|
Improve this Doc
View Source
EscapeSqlValue(Object, Encoding)
return the value escaped for valid sql
Declaration
public string EscapeSqlValue(object obj, Encoding encoding)
Parameters
Returns
|
Improve this Doc
View Source
GetEnclosedValueChar(Type)
Declaration
public string GetEnclosedValueChar(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Improve this Doc
View Source
GetKeywordEscapeClosedChar()
Declaration
public string GetKeywordEscapeClosedChar()
Returns
|
Improve this Doc
View Source
GetKeywordEscapeOpenChar()
Declaration
public string GetKeywordEscapeOpenChar()
Returns
|
Improve this Doc
View Source
RemoveKeywordEscapeChars(String)
Declaration
public string RemoveKeywordEscapeChars(string value)
Parameters
Type |
Name |
Description |
String |
value |
|
Returns