Table of Contents

Class DataTools

Namespace
LinqToDB.DataProvider
Assembly
linq2db.dll
public static class DataTools
Inheritance
DataTools

Fields

GetCharExpression

public static Expression<Func<DbDataReader, int, string>> GetCharExpression

Field Value

Expression<Func<DbDataReader, int, string>>

Methods

ConvertCharToSql(StringBuilder, string, Action<StringBuilder, int>, char)

public static void ConvertCharToSql(StringBuilder stringBuilder, string startString, Action<StringBuilder, int> appendConversion, char value)

Parameters

stringBuilder StringBuilder
startString string
appendConversion Action<StringBuilder, int>
value char

ConvertStringToSql(StringBuilder, string, string?, Action<StringBuilder, int>, string, char[]?)

public static void ConvertStringToSql(StringBuilder stringBuilder, string plusOperator, string? startPrefix, Action<StringBuilder, int> appendConversion, string value, char[]? extraEscapes)

Parameters

stringBuilder StringBuilder
plusOperator string
startPrefix string
appendConversion Action<StringBuilder, int>
value string
extraEscapes char[]

EscapeUnterminatedBracket(string?)

Improved version of Replace("[", "[[]") code, used before.

public static string? EscapeUnterminatedBracket(string? str)

Parameters

str string

Returns

string