Search Results for

    Show / Hide Table of Contents

    Class CommonExpression

    Inheritance
    System.Object
    CommonExpression
    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: FreeSql.Internal
    Assembly: FreeSql.dll
    Syntax
    public abstract class CommonExpression

    Constructors

    | Improve this Doc View Source

    CommonExpression(CommonUtils)

    Declaration
    public CommonExpression(CommonUtils common)
    Parameters
    Type Name Description
    CommonUtils common

    Fields

    | Improve this Doc View Source

    _common

    Declaration
    public CommonUtils _common
    Field Value
    Type Description
    CommonUtils

    Properties

    | Improve this Doc View Source

    _ado

    Declaration
    public AdoProvider _ado { get; }
    Property Value
    Type Description
    AdoProvider

    Methods

    | Improve this Doc View Source

    ExpressionBinary(String, Expression, Expression, CommonExpression.ExpTSC)

    Declaration
    public string ExpressionBinary(string oper, Expression leftExp, Expression rightExp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.String oper
    System.Linq.Expressions.Expression leftExp
    System.Linq.Expressions.Expression rightExp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionBinaryBitwise(String, Expression, Expression, CommonExpression.ExpTSC)

    Declaration
    public string ExpressionBinaryBitwise(string oper, Expression leftExp, Expression rightExp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.String oper
    System.Linq.Expressions.Expression leftExp
    System.Linq.Expressions.Expression rightExp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionConstDateTime(Expression)

    Declaration
    public string ExpressionConstDateTime(Expression exp)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression exp
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionGetValue(Expression, out Boolean)

    Declaration
    public static object ExpressionGetValue(Expression exp, out bool success)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression exp
    System.Boolean success
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    ExpressionJoinLambda(List<SelectTableInfo>, Func<Type, String, String>, SelectTableInfoType, Expression, BaseDiyMemberExpression, List<GlobalFilter.Item>)

    Declaration
    public void ExpressionJoinLambda(List<SelectTableInfo> _tables, Func<Type, string, string> _tableRule, SelectTableInfoType tbtype, Expression exp, BaseDiyMemberExpression diymemexp, List<GlobalFilter.Item> whereGlobalFilter)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    System.Func<System.Type, System.String, System.String> _tableRule
    SelectTableInfoType tbtype
    System.Linq.Expressions.Expression exp
    BaseDiyMemberExpression diymemexp
    System.Collections.Generic.List<GlobalFilter.Item> whereGlobalFilter
    | Improve this Doc View Source

    ExpressionLambdaToSql(Expression, CommonExpression.ExpTSC)

    Declaration
    public string ExpressionLambdaToSql(Expression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlCallConvert(MethodCallExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlCallConvert(MethodCallExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MethodCallExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlCallDateTime(MethodCallExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlCallDateTime(MethodCallExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MethodCallExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlCallMath(MethodCallExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlCallMath(MethodCallExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MethodCallExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlCallString(MethodCallExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlCallString(MethodCallExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MethodCallExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlCallTimeSpan(MethodCallExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlCallTimeSpan(MethodCallExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MethodCallExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlMemberAccessDateTime(MemberExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlMemberAccessDateTime(MemberExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MemberExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlMemberAccessString(MemberExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlMemberAccessString(MemberExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MemberExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlMemberAccessTimeSpan(MemberExpression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlMemberAccessTimeSpan(MemberExpression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.MemberExpression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionLambdaToSqlOther(Expression, CommonExpression.ExpTSC)

    Declaration
    public abstract string ExpressionLambdaToSqlOther(Expression exp, CommonExpression.ExpTSC tsc)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression exp
    CommonExpression.ExpTSC tsc
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionSelectColumn_MemberAccess(List<SelectTableInfo>, Func<Type, String, String>, List<SelectColumnInfo>, SelectTableInfoType, Expression, Boolean, BaseDiyMemberExpression)

    Declaration
    public string ExpressionSelectColumn_MemberAccess(List<SelectTableInfo> _tables, Func<Type, string, string> _tableRule, List<SelectColumnInfo> _selectColumnMap, SelectTableInfoType tbtype, Expression exp, bool isQuoteName, BaseDiyMemberExpression diymemexp)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    System.Func<System.Type, System.String, System.String> _tableRule
    System.Collections.Generic.List<SelectColumnInfo> _selectColumnMap
    SelectTableInfoType tbtype
    System.Linq.Expressions.Expression exp
    System.Boolean isQuoteName
    BaseDiyMemberExpression diymemexp
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionSelectColumns_MemberAccess_New_NewArrayInit(List<SelectTableInfo>, Func<Type, String, String>, Expression, Boolean, BaseDiyMemberExpression)

    Declaration
    public string[] ExpressionSelectColumns_MemberAccess_New_NewArrayInit(List<SelectTableInfo> _tables, Func<Type, string, string> _tableRule, Expression exp, bool isQuoteName, BaseDiyMemberExpression diymemexp)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    System.Func<System.Type, System.String, System.String> _tableRule
    System.Linq.Expressions.Expression exp
    System.Boolean isQuoteName
    BaseDiyMemberExpression diymemexp
    Returns
    Type Description
    System.String[]
    | Improve this Doc View Source

    ExpressionWhereLambda(List<SelectTableInfo>, Func<Type, String, String>, Expression, BaseDiyMemberExpression, List<GlobalFilter.Item>, List<DbParameter>)

    Declaration
    public string ExpressionWhereLambda(List<SelectTableInfo> _tables, Func<Type, string, string> _tableRule, Expression exp, BaseDiyMemberExpression diymemexp, List<GlobalFilter.Item> whereGlobalFilter, List<DbParameter> dbParams)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    System.Func<System.Type, System.String, System.String> _tableRule
    System.Linq.Expressions.Expression exp
    BaseDiyMemberExpression diymemexp
    System.Collections.Generic.List<GlobalFilter.Item> whereGlobalFilter
    System.Collections.Generic.List<System.Data.Common.DbParameter> dbParams
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ExpressionWhereLambdaNoneForeignObject(List<SelectTableInfo>, Func<Type, String, String>, TableInfo, List<SelectColumnInfo>, Expression, BaseDiyMemberExpression, List<DbParameter>)

    Declaration
    public string ExpressionWhereLambdaNoneForeignObject(List<SelectTableInfo> _tables, Func<Type, string, string> _tableRule, TableInfo table, List<SelectColumnInfo> _selectColumnMap, Expression exp, BaseDiyMemberExpression diymemexp, List<DbParameter> dbParams)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    System.Func<System.Type, System.String, System.String> _tableRule
    TableInfo table
    System.Collections.Generic.List<SelectColumnInfo> _selectColumnMap
    System.Linq.Expressions.Expression exp
    BaseDiyMemberExpression diymemexp
    System.Collections.Generic.List<System.Data.Common.DbParameter> dbParams
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    formatSql(Object, Type, ColumnInfo, List<DbParameter>)

    Declaration
    public string formatSql(object obj, Type mapType, ColumnInfo mapColumn, List<DbParameter> dbParams)
    Parameters
    Type Name Description
    System.Object obj
    System.Type mapType
    ColumnInfo mapColumn
    System.Collections.Generic.List<System.Data.Common.DbParameter> dbParams
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetBoolString(Expression, String)

    Declaration
    public string GetBoolString(Expression exp, string sql)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression exp
    System.String sql
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetWhereCascadeSql(SelectTableInfo, IEnumerable<GlobalFilter.Item>, Boolean)

    Declaration
    public string GetWhereCascadeSql(SelectTableInfo tb, IEnumerable<GlobalFilter.Item> filters, bool isMultitb)
    Parameters
    Type Name Description
    SelectTableInfo tb
    System.Collections.Generic.IEnumerable<GlobalFilter.Item> filters
    System.Boolean isMultitb
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    MatchDtoPropertys(SelectTableInfo, PropertyInfo)

    Declaration
    public List<Expression[]> MatchDtoPropertys(SelectTableInfo tb, PropertyInfo dtoProp)
    Parameters
    Type Name Description
    SelectTableInfo tb
    System.Reflection.PropertyInfo dtoProp
    Returns
    Type Description
    System.Collections.Generic.List<System.Linq.Expressions.Expression[]>
    | Improve this Doc View Source

    ParseExpressionNoAsSelect(Object, ParseExpressionEventArgs, Func<Type, String, String>, List<GlobalFilter.Item>)

    Declaration
    public static void ParseExpressionNoAsSelect(object sender, ParseExpressionEventArgs e, Func<Type, string, string> tableRule, List<GlobalFilter.Item> whereGlobalFilter)
    Parameters
    Type Name Description
    System.Object sender
    ParseExpressionEventArgs e
    System.Func<System.Type, System.String, System.String> tableRule
    System.Collections.Generic.List<GlobalFilter.Item> whereGlobalFilter
    | Improve this Doc View Source

    ReadAnonymous(ReadAnonymousTypeInfo, DbDataReader, ref Int32, Boolean, CommonExpression.ReadAnonymousDbValueRef, Int32, List<NativeTuple<String, IList, Int32>>, List<NativeTuple<Expression, IList, Int32>>)

    Declaration
    public object ReadAnonymous(ReadAnonymousTypeInfo parent, DbDataReader dr, ref int index, bool notRead, CommonExpression.ReadAnonymousDbValueRef dbValue, int rowIndex, List<NativeTuple<string, IList, int>> fillIncludeMany, List<NativeTuple<Expression, IList, int>> fillSubSelectMany)
    Parameters
    Type Name Description
    ReadAnonymousTypeInfo parent
    System.Data.Common.DbDataReader dr
    System.Int32 index
    System.Boolean notRead
    CommonExpression.ReadAnonymousDbValueRef dbValue
    System.Int32 rowIndex
    System.Collections.Generic.List<NativeTuple<System.String, System.Collections.IList, System.Int32>> fillIncludeMany
    System.Collections.Generic.List<NativeTuple<System.Linq.Expressions.Expression, System.Collections.IList, System.Int32>> fillSubSelectMany
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    ReadAnonymousField(List<SelectTableInfo>, Func<Type, String, String>, StringBuilder, ReadAnonymousTypeInfo, ref Int32, Expression, Select0Provider, BaseDiyMemberExpression, List<GlobalFilter.Item>, List<String>, List<Expression>, Boolean)

    Declaration
    public bool ReadAnonymousField(List<SelectTableInfo> _tables, Func<Type, string, string> _tableRule, StringBuilder field, ReadAnonymousTypeInfo parent, ref int index, Expression exp, Select0Provider select, BaseDiyMemberExpression diymemexp, List<GlobalFilter.Item> whereGlobalFilter, List<string> findIncludeMany, List<Expression> findSubSelectMany, bool isAllDtoMap)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    System.Func<System.Type, System.String, System.String> _tableRule
    System.Text.StringBuilder field
    ReadAnonymousTypeInfo parent
    System.Int32 index
    System.Linq.Expressions.Expression exp
    Select0Provider select
    BaseDiyMemberExpression diymemexp
    System.Collections.Generic.List<GlobalFilter.Item> whereGlobalFilter
    System.Collections.Generic.List<System.String> findIncludeMany
    System.Collections.Generic.List<System.Linq.Expressions.Expression> findSubSelectMany
    System.Boolean isAllDtoMap
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    SearchColumnByField(List<SelectTableInfo>, TableInfo, String)

    Declaration
    public ColumnInfo SearchColumnByField(List<SelectTableInfo> _tables, TableInfo currentTable, string field)
    Parameters
    Type Name Description
    System.Collections.Generic.List<SelectTableInfo> _tables
    TableInfo currentTable
    System.String field
    Returns
    Type Description
    ColumnInfo
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX