Class Expressions
public static class Expressions
- Inheritance
-
Expressions
Methods
AccessInt<T>(T)
[CLSCompliant(false)]
[Sql.Function("Int", new int[] { 0 })]
public static T AccessInt<T>(T value)
Parameters
value
T
Returns
- T
Type Parameters
T
AccessRound<T>(T, int?)
[CLSCompliant(false)]
[Sql.Function("Round", new int[] { 0, 1 })]
public static T AccessRound<T>(T value, int? precision)
Parameters
value
Tprecision
int?
Returns
- T
Type Parameters
T
AltStuff(string?, int?, int?, string?)
[Sql.Function(IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static string? AltStuff(string? str, int? startLocation, int? length, string? value)
Parameters
Returns
ConvertBinary(MappingSchema, BinaryExpression)
Searches for registered BinaryExpression mapping and returns LambdaExpression which has to replace this expression.
public static LambdaExpression? ConvertBinary(MappingSchema mappingSchema, BinaryExpression binaryExpression)
Parameters
mappingSchema
MappingSchemaCurrent mapping schema.
binaryExpression
BinaryExpressionExpression which has to be replaced.
Returns
- LambdaExpression
Returns registered LambdaExpression or null.
ConvertMember(MappingSchema, Type?, MemberInfo)
public static LambdaExpression? ConvertMember(MappingSchema mappingSchema, Type? objectType, MemberInfo mi)
Parameters
mappingSchema
MappingSchemaobjectType
Typemi
MemberInfo
Returns
ConvertToCaseCompareTo(string?, string?)
[Sql.Function(IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static int? ConvertToCaseCompareTo(string? str, string? value)
Parameters
Returns
- int?
DateAdd(DateParts, int?, int?)
[Sql.Extension("DateAdd", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.DateAddBuilder))]
public static DateTime? DateAdd(Sql.DateParts part, int? number, int? days)
Parameters
Returns
DecimalPI()
[Sql.Function("PI", ServerSideOnly = true, CanBeNull = false)]
public static decimal DecimalPI()
Returns
DoublePI()
[Sql.Function("PI", ServerSideOnly = true, CanBeNull = false)]
public static double DoublePI()
Returns
Hex(Guid?)
[Sql.Function(IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static string? Hex(Guid? guid)
Parameters
guid
Guid?
Returns
L<TR>(Expression<Func<TR>>)
public static LambdaExpression L<TR>(Expression<Func<TR>> func)
Parameters
func
Expression<Func<TR>>
Returns
Type Parameters
TR
L<T1, TR>(Expression<Func<T1, TR>>)
public static LambdaExpression L<T1, TR>(Expression<Func<T1, TR>> func)
Parameters
func
Expression<Func<T1, TR>>
Returns
Type Parameters
T1
TR
L<T1, T2, TR>(Expression<Func<T1, T2, TR>>)
public static LambdaExpression L<T1, T2, TR>(Expression<Func<T1, T2, TR>> func)
Parameters
func
Expression<Func<T1, T2, TR>>
Returns
Type Parameters
T1
T2
TR
L<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>>)
public static LambdaExpression L<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> func)
Parameters
func
Expression<Func<T1, T2, T3, TR>>
Returns
Type Parameters
T1
T2
T3
TR
L<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>>)
public static LambdaExpression L<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> func)
Parameters
func
Expression<Func<T1, T2, T3, T4, TR>>
Returns
Type Parameters
T1
T2
T3
T4
TR
L<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>>)
public static LambdaExpression L<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> func)
Parameters
func
Expression<Func<T1, T2, T3, T4, T5, TR>>
Returns
Type Parameters
T1
T2
T3
T4
T5
TR
L<T1, T2, T3, T4, T5, T6, TR>(Expression<Func<T1, T2, T3, T4, T5, T6, TR>>)
public static LambdaExpression L<T1, T2, T3, T4, T5, T6, TR>(Expression<Func<T1, T2, T3, T4, T5, T6, TR>> func)
Parameters
func
Expression<Func<T1, T2, T3, T4, T5, T6, TR>>
Returns
Type Parameters
T1
T2
T3
T4
T5
T6
TR
M<T>(Expression<Func<T, object?>>)
public static MemberHelper.MemberInfoWithType M<T>(Expression<Func<T, object?>> func)
Parameters
func
Expression<Func<T, object>>
Returns
Type Parameters
T
M<T>(Expression<Func<T>>)
public static MemberHelper.MemberInfoWithType M<T>(Expression<Func<T>> func)
Parameters
func
Expression<Func<T>>
Returns
Type Parameters
T
MakeDateTime2(int?, int?, int?)
[Sql.Function("Access", "DateSerial", IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static DateTime? MakeDateTime2(int? year, int? month, int? day)
Parameters
Returns
MapBinary(ExpressionType, Type, Type, LambdaExpression)
Maps specific BinaryExpression to another LambdaExpression during SQL generation.
public static void MapBinary(ExpressionType nodeType, Type leftType, Type rightType, LambdaExpression expression)
Parameters
nodeType
ExpressionTypeNodeType of BinaryExpression ExpressionType which needs mapping.
leftType
TypeExact type of Left member.
rightType
TypeExact type of Right member.
expression
LambdaExpressionLambda expression which has to replace BinaryExpression.
Remarks
Note that method is not thread safe and has to be used only in Application's initialization section.
MapBinary(string, ExpressionType, Type, Type, LambdaExpression)
Maps specific BinaryExpression to another Lambda expression during SQL generation.
public static void MapBinary(string providerName, ExpressionType nodeType, Type leftType, Type rightType, LambdaExpression expression)
Parameters
providerName
stringName of database provider to use with this connection. ProviderName class for list of providers.
nodeType
ExpressionTypeNodeType of BinaryExpression ExpressionType which needs mapping.
leftType
TypeExact type of Left member.
rightType
TypeExact type of Right member.
expression
LambdaExpressionLambda expression which has to replace BinaryExpression
Remarks
Note that method is not thread safe and has to be used only in Application's initialization section.
MapBinary<TLeft, TRight, TR>(Expression<Func<TLeft, TRight, TR>>, Expression<Func<TLeft, TRight, TR>>)
Maps specific BinaryExpression to another LambdaExpression during SQL generation.
public static void MapBinary<TLeft, TRight, TR>(Expression<Func<TLeft, TRight, TR>> binaryExpression, Expression<Func<TLeft, TRight, TR>> expression)
Parameters
binaryExpression
Expression<Func<TLeft, TRight, TR>>Expression which has to be replaced.
expression
Expression<Func<TLeft, TRight, TR>>Lambda expression which has to replace
binaryExpression
.
Type Parameters
TLeft
Exact type of Left member.
TRight
Exact type of Right member.
TR
Result type of
binaryExpression
.
Remarks
Note that method is not thread safe and has to be used only in Application's initialization section.
MapBinary<TLeft, TRight, TR>(string, Expression<Func<TLeft, TRight, TR>>, Expression<Func<TLeft, TRight, TR>>)
Maps specific BinaryExpression to another LambdaExpression during SQL generation.
public static void MapBinary<TLeft, TRight, TR>(string providerName, Expression<Func<TLeft, TRight, TR>> binaryExpression, Expression<Func<TLeft, TRight, TR>> expression)
Parameters
providerName
stringName of database provider to use with this connection. ProviderName class for list of providers.
binaryExpression
Expression<Func<TLeft, TRight, TR>>Expression which has to be replaced.
expression
Expression<Func<TLeft, TRight, TR>>Lambda expression which has to replace
binaryExpression
.
Type Parameters
TLeft
Exact type of Left member.
TRight
Exact type of Right member.
TR
Result type of
binaryExpression
.
Remarks
Note that method is not thread safe and has to be used only in Application's initialization section.
MapMember(Expression<Func<object>>, LambdaExpression)
public static void MapMember(Expression<Func<object>> memberInfo, LambdaExpression expression)
Parameters
memberInfo
Expression<Func<object>>expression
LambdaExpression
MapMember(MemberInfo, IExpressionInfo)
public static void MapMember(MemberInfo memberInfo, IExpressionInfo expressionInfo)
Parameters
memberInfo
MemberInfoexpressionInfo
IExpressionInfo
MapMember(MemberInfo, LambdaExpression)
public static void MapMember(MemberInfo memberInfo, LambdaExpression expression)
Parameters
memberInfo
MemberInfoexpression
LambdaExpression
MapMember(string, MemberInfoWithType, LambdaExpression)
public static void MapMember(string providerName, MemberHelper.MemberInfoWithType memberInfoWithType, LambdaExpression expression)
Parameters
providerName
stringmemberInfoWithType
MemberHelper.MemberInfoWithTypeexpression
LambdaExpression
MapMember(string, Expression<Func<object>>, LambdaExpression)
public static void MapMember(string providerName, Expression<Func<object>> memberInfo, LambdaExpression expression)
Parameters
providerName
stringmemberInfo
Expression<Func<object>>expression
LambdaExpression
MapMember(string, MemberInfo, IExpressionInfo)
public static void MapMember(string providerName, MemberInfo memberInfo, IExpressionInfo expressionInfo)
Parameters
providerName
stringmemberInfo
MemberInfoexpressionInfo
IExpressionInfo
MapMember(string, MemberInfo, LambdaExpression)
public static void MapMember(string providerName, MemberInfo memberInfo, LambdaExpression expression)
Parameters
providerName
stringmemberInfo
MemberInfoexpression
LambdaExpression
MapMember(string, Type, MemberInfo, IExpressionInfo)
public static void MapMember(string providerName, Type objectType, MemberInfo memberInfo, IExpressionInfo expressionInfo)
Parameters
providerName
stringobjectType
TypememberInfo
MemberInfoexpressionInfo
IExpressionInfo
MapMember(string, Type, MemberInfo, LambdaExpression)
public static void MapMember(string providerName, Type objectType, MemberInfo memberInfo, LambdaExpression expression)
Parameters
providerName
stringobjectType
TypememberInfo
MemberInfoexpression
LambdaExpression
MapMember(Type, MemberInfo, LambdaExpression)
public static void MapMember(Type objectType, MemberInfo memberInfo, LambdaExpression expression)
Parameters
objectType
TypememberInfo
MemberInfoexpression
LambdaExpression
MapMember<T>(Expression<Func<T, object?>>, LambdaExpression)
public static void MapMember<T>(Expression<Func<T, object?>> memberInfo, LambdaExpression expression)
Parameters
memberInfo
Expression<Func<T, object>>expression
LambdaExpression
Type Parameters
T
MapMember<TR>(Expression<Func<TR>>, Expression<Func<TR>>)
public static void MapMember<TR>(Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
Parameters
memberInfo
Expression<Func<TR>>expression
Expression<Func<TR>>
Type Parameters
TR
MapMember<T>(string, Expression<Func<T, object?>>, LambdaExpression)
public static void MapMember<T>(string providerName, Expression<Func<T, object?>> memberInfo, LambdaExpression expression)
Parameters
providerName
stringmemberInfo
Expression<Func<T, object>>expression
LambdaExpression
Type Parameters
T
MapMember<TR>(string, Expression<Func<TR>>, Expression<Func<TR>>)
public static void MapMember<TR>(string providerName, Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
Parameters
providerName
stringmemberInfo
Expression<Func<TR>>expression
Expression<Func<TR>>
Type Parameters
TR
MapMember<TR>(string, Type, Expression<Func<TR>>, Expression<Func<TR>>)
public static void MapMember<TR>(string providerName, Type objectType, Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
Parameters
providerName
stringobjectType
TypememberInfo
Expression<Func<TR>>expression
Expression<Func<TR>>
Type Parameters
TR
MapMember<TR>(Type, Expression<Func<TR>>, Expression<Func<TR>>)
public static void MapMember<TR>(Type objectType, Expression<Func<TR>> memberInfo, Expression<Func<TR>> expression)
Parameters
objectType
TypememberInfo
Expression<Func<TR>>expression
Expression<Func<TR>>
Type Parameters
TR
MapMember<T1, TR>(Expression<Func<T1, TR>>, Expression<Func<T1, TR>>)
public static void MapMember<T1, TR>(Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
Parameters
memberInfo
Expression<Func<T1, TR>>expression
Expression<Func<T1, TR>>
Type Parameters
T1
TR
MapMember<T1, TR>(string, Expression<Func<T1, TR>>, Expression<Func<T1, TR>>)
public static void MapMember<T1, TR>(string providerName, Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
Parameters
providerName
stringmemberInfo
Expression<Func<T1, TR>>expression
Expression<Func<T1, TR>>
Type Parameters
T1
TR
MapMember<T1, TR>(string, Type, Expression<Func<T1, TR>>, Expression<Func<T1, TR>>)
public static void MapMember<T1, TR>(string providerName, Type objectType, Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
Parameters
providerName
stringobjectType
TypememberInfo
Expression<Func<T1, TR>>expression
Expression<Func<T1, TR>>
Type Parameters
T1
TR
MapMember<T1, TR>(Type, Expression<Func<T1, TR>>, Expression<Func<T1, TR>>)
public static void MapMember<T1, TR>(Type objectType, Expression<Func<T1, TR>> memberInfo, Expression<Func<T1, TR>> expression)
Parameters
objectType
TypememberInfo
Expression<Func<T1, TR>>expression
Expression<Func<T1, TR>>
Type Parameters
T1
TR
MapMember<T1, T2, TR>(Expression<Func<T1, T2, TR>>, Expression<Func<T1, T2, TR>>)
public static void MapMember<T1, T2, TR>(Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
Parameters
memberInfo
Expression<Func<T1, T2, TR>>expression
Expression<Func<T1, T2, TR>>
Type Parameters
T1
T2
TR
MapMember<T1, T2, TR>(string, Expression<Func<T1, T2, TR>>, Expression<Func<T1, T2, TR>>)
public static void MapMember<T1, T2, TR>(string providerName, Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
Parameters
providerName
stringmemberInfo
Expression<Func<T1, T2, TR>>expression
Expression<Func<T1, T2, TR>>
Type Parameters
T1
T2
TR
MapMember<T1, T2, TR>(string, Type, Expression<Func<T1, T2, TR>>, Expression<Func<T1, T2, TR>>)
public static void MapMember<T1, T2, TR>(string providerName, Type objectType, Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
Parameters
providerName
stringobjectType
TypememberInfo
Expression<Func<T1, T2, TR>>expression
Expression<Func<T1, T2, TR>>
Type Parameters
T1
T2
TR
MapMember<T1, T2, TR>(Type, Expression<Func<T1, T2, TR>>, Expression<Func<T1, T2, TR>>)
public static void MapMember<T1, T2, TR>(Type objectType, Expression<Func<T1, T2, TR>> memberInfo, Expression<Func<T1, T2, TR>> expression)
Parameters
objectType
TypememberInfo
Expression<Func<T1, T2, TR>>expression
Expression<Func<T1, T2, TR>>
Type Parameters
T1
T2
TR
MapMember<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>>, Expression<Func<T1, T2, T3, TR>>)
public static void MapMember<T1, T2, T3, TR>(Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
Parameters
memberInfo
Expression<Func<T1, T2, T3, TR>>expression
Expression<Func<T1, T2, T3, TR>>
Type Parameters
T1
T2
T3
TR
MapMember<T1, T2, T3, TR>(string, Expression<Func<T1, T2, T3, TR>>, Expression<Func<T1, T2, T3, TR>>)
public static void MapMember<T1, T2, T3, TR>(string providerName, Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
Parameters
providerName
stringmemberInfo
Expression<Func<T1, T2, T3, TR>>expression
Expression<Func<T1, T2, T3, TR>>
Type Parameters
T1
T2
T3
TR
MapMember<T1, T2, T3, TR>(string, Type, Expression<Func<T1, T2, T3, TR>>, Expression<Func<T1, T2, T3, TR>>)
public static void MapMember<T1, T2, T3, TR>(string providerName, Type objectType, Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
Parameters
providerName
stringobjectType
TypememberInfo
Expression<Func<T1, T2, T3, TR>>expression
Expression<Func<T1, T2, T3, TR>>
Type Parameters
T1
T2
T3
TR
MapMember<T1, T2, T3, TR>(Type, Expression<Func<T1, T2, T3, TR>>, Expression<Func<T1, T2, T3, TR>>)
public static void MapMember<T1, T2, T3, TR>(Type objectType, Expression<Func<T1, T2, T3, TR>> memberInfo, Expression<Func<T1, T2, T3, TR>> expression)
Parameters
objectType
TypememberInfo
Expression<Func<T1, T2, T3, TR>>expression
Expression<Func<T1, T2, T3, TR>>
Type Parameters
T1
T2
T3
TR
MapMember<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>>, Expression<Func<T1, T2, T3, T4, TR>>)
public static void MapMember<T1, T2, T3, T4, TR>(Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
Parameters
memberInfo
Expression<Func<T1, T2, T3, T4, TR>>expression
Expression<Func<T1, T2, T3, T4, TR>>
Type Parameters
T1
T2
T3
T4
TR
MapMember<T1, T2, T3, T4, TR>(string, Expression<Func<T1, T2, T3, T4, TR>>, Expression<Func<T1, T2, T3, T4, TR>>)
public static void MapMember<T1, T2, T3, T4, TR>(string providerName, Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
Parameters
providerName
stringmemberInfo
Expression<Func<T1, T2, T3, T4, TR>>expression
Expression<Func<T1, T2, T3, T4, TR>>
Type Parameters
T1
T2
T3
T4
TR
MapMember<T1, T2, T3, T4, TR>(string, Type, Expression<Func<T1, T2, T3, T4, TR>>, Expression<Func<T1, T2, T3, T4, TR>>)
public static void MapMember<T1, T2, T3, T4, TR>(string providerName, Type objectType, Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
Parameters
providerName
stringobjectType
TypememberInfo
Expression<Func<T1, T2, T3, T4, TR>>expression
Expression<Func<T1, T2, T3, T4, TR>>
Type Parameters
T1
T2
T3
T4
TR
MapMember<T1, T2, T3, T4, TR>(Type, Expression<Func<T1, T2, T3, T4, TR>>, Expression<Func<T1, T2, T3, T4, TR>>)
public static void MapMember<T1, T2, T3, T4, TR>(Type objectType, Expression<Func<T1, T2, T3, T4, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, TR>> expression)
Parameters
objectType
TypememberInfo
Expression<Func<T1, T2, T3, T4, TR>>expression
Expression<Func<T1, T2, T3, T4, TR>>
Type Parameters
T1
T2
T3
T4
TR
MapMember<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>>, Expression<Func<T1, T2, T3, T4, T5, TR>>)
public static void MapMember<T1, T2, T3, T4, T5, TR>(Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
Parameters
memberInfo
Expression<Func<T1, T2, T3, T4, T5, TR>>expression
Expression<Func<T1, T2, T3, T4, T5, TR>>
Type Parameters
T1
T2
T3
T4
T5
TR
MapMember<T1, T2, T3, T4, T5, TR>(string, Expression<Func<T1, T2, T3, T4, T5, TR>>, Expression<Func<T1, T2, T3, T4, T5, TR>>)
public static void MapMember<T1, T2, T3, T4, T5, TR>(string providerName, Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
Parameters
providerName
stringmemberInfo
Expression<Func<T1, T2, T3, T4, T5, TR>>expression
Expression<Func<T1, T2, T3, T4, T5, TR>>
Type Parameters
T1
T2
T3
T4
T5
TR
MapMember<T1, T2, T3, T4, T5, TR>(string, Type, Expression<Func<T1, T2, T3, T4, T5, TR>>, Expression<Func<T1, T2, T3, T4, T5, TR>>)
public static void MapMember<T1, T2, T3, T4, T5, TR>(string providerName, Type objectType, Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
Parameters
providerName
stringobjectType
TypememberInfo
Expression<Func<T1, T2, T3, T4, T5, TR>>expression
Expression<Func<T1, T2, T3, T4, T5, TR>>
Type Parameters
T1
T2
T3
T4
T5
TR
MapMember<T1, T2, T3, T4, T5, TR>(Type, Expression<Func<T1, T2, T3, T4, T5, TR>>, Expression<Func<T1, T2, T3, T4, T5, TR>>)
public static void MapMember<T1, T2, T3, T4, T5, TR>(Type objectType, Expression<Func<T1, T2, T3, T4, T5, TR>> memberInfo, Expression<Func<T1, T2, T3, T4, T5, TR>> expression)
Parameters
objectType
TypememberInfo
Expression<Func<T1, T2, T3, T4, T5, TR>>expression
Expression<Func<T1, T2, T3, T4, T5, TR>>
Type Parameters
T1
T2
T3
T4
T5
TR
Mdy(int?, int?, int?)
[Sql.Function(IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static DateTime? Mdy(int? month, int? day, int? year)
Parameters
Returns
N(Func<LambdaExpression>)
public static Expressions.LazyExpressionInfo N(Func<LambdaExpression> func)
Parameters
func
Func<LambdaExpression>
Returns
Replicate(char?, int?)
[CLSCompliant(false)]
[Sql.Function(IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
[Sql.Function("DB2", "Repeat", IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
[Sql.Function("PostgreSQL", "Repeat", IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
[Sql.Function("Access", "string", new int[] { 1, 0 }, IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static string? Replicate(char? ch, int? count)
Parameters
Returns
Replicate(string?, int?)
[CLSCompliant(false)]
[Sql.Function(IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
[Sql.Function("DB2", "Repeat", IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
[Sql.Function("PostgreSQL", "Repeat", IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
[Sql.Function("Access", "string", new int[] { 1, 0 }, IsNullable = Sql.IsNullableType.IfAnyParameterNullable)]
public static string? Replicate(string? str, int? count)
Parameters
Returns
Round(decimal?, int, int)
[Sql.Function(IsNullable = Sql.IsNullableType.SameAsFirstParameter)]
public static decimal? Round(decimal? value, int precision, int mode)
Parameters
Returns
Round(double?, int, int)
[Sql.Function(IsNullable = Sql.IsNullableType.SameAsFirstParameter)]
public static double? Round(double? value, int precision, int mode)
Parameters
Returns
SetGenericInfoProvider(Type)
public static void SetGenericInfoProvider(Type type)
Parameters
type
Type
TrimLeft(string?, params char[])
[CLSCompliant(false)]
[Sql.Expression("Firebird", "TRIM(LEADING FROM {0})", ServerSideOnly = false, PreferServerSide = false)]
[Sql.Extension("ClickHouse", "trim(LEADING {1} FROM {0})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("SqlServer.2022", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("DB2", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("Informix", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("Oracle", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("PostgreSQL", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("SapHana", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Extension("SQLite", "LTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.LTrimCharactersBuilder))]
[Sql.Function("LTrim", new int[] { 0 }, IsNullable = Sql.IsNullableType.SameAsFirstParameter)]
public static string? TrimLeft(string? str, params char[] trimChars)
Parameters
Returns
TrimRight(string?, params char[])
[CLSCompliant(false)]
[Sql.Expression("Firebird", "TRIM(TRAILING FROM {0})", ServerSideOnly = false, PreferServerSide = false)]
[Sql.Extension("ClickHouse", "trim(TRAILING {1} FROM {0})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("SqlServer.2022", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("DB2", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("Informix", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("Oracle", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("PostgreSQL", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("SapHana", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Extension("SQLite", "RTRIM({0}, {1})", ServerSideOnly = false, PreferServerSide = false, BuilderType = typeof(Expressions.RTrimCharactersBuilder))]
[Sql.Function("RTrim", new int[] { 0 }, IsNullable = Sql.IsNullableType.SameAsFirstParameter)]
public static string? TrimRight(string? str, params char[] trimChars)
Parameters
Returns
VarChar(object?, int?)
[Sql.Function(IsNullable = Sql.IsNullableType.SameAsFirstParameter)]
public static string? VarChar(object? obj, int? size)