Search Results for

    Show / Hide Table of Contents

    Class Utils

    Inheritance
    System.Object
    Utils
    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 class Utils

    Fields

    | Improve this Doc View Source

    dicExecuteArrayRowReadClassOrTuple

    Declaration
    public static Dictionary<Type, bool> dicExecuteArrayRowReadClassOrTuple
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.Type, System.Boolean>
    | Improve this Doc View Source

    GetDataReaderValueBlockExpressionObjectToBytesIfThenElse

    Declaration
    public static ConcurrentBag<Func<LabelTarget, Expression, Expression, Type, Expression>> GetDataReaderValueBlockExpressionObjectToBytesIfThenElse
    Field Value
    Type Description
    System.Collections.Concurrent.ConcurrentBag<System.Func<System.Linq.Expressions.LabelTarget, System.Linq.Expressions.Expression, System.Linq.Expressions.Expression, System.Type, System.Linq.Expressions.Expression>>
    | Improve this Doc View Source

    GetDataReaderValueBlockExpressionObjectToStringIfThenElse

    Declaration
    public static ConcurrentBag<Func<LabelTarget, Expression, Expression, Type, Expression>> GetDataReaderValueBlockExpressionObjectToStringIfThenElse
    Field Value
    Type Description
    System.Collections.Concurrent.ConcurrentBag<System.Func<System.Linq.Expressions.LabelTarget, System.Linq.Expressions.Expression, System.Linq.Expressions.Expression, System.Type, System.Linq.Expressions.Expression>>
    | Improve this Doc View Source

    GetDataReaderValueBlockExpressionSwitchTypeFullName

    Declaration
    public static ConcurrentBag<Func<LabelTarget, Expression, Type, Expression>> GetDataReaderValueBlockExpressionSwitchTypeFullName
    Field Value
    Type Description
    System.Collections.Concurrent.ConcurrentBag<System.Func<System.Linq.Expressions.LabelTarget, System.Linq.Expressions.Expression, System.Type, System.Linq.Expressions.Expression>>

    Methods

    | Improve this Doc View Source

    AddTableRef(CommonUtils, TableInfo, PropertyInfo, Boolean, NativeTuple<PropertyInfo, Boolean, Boolean, MethodInfo, MethodInfo>, StringBuilder)

    Declaration
    public static void AddTableRef(CommonUtils common, TableInfo trytb, PropertyInfo pnv, bool isLazy, NativeTuple<PropertyInfo, bool, bool, MethodInfo, MethodInfo> vp, StringBuilder cscode)
    Parameters
    Type Name Description
    CommonUtils common
    TableInfo trytb
    System.Reflection.PropertyInfo pnv
    System.Boolean isLazy
    NativeTuple<System.Reflection.PropertyInfo, System.Boolean, System.Boolean, System.Reflection.MethodInfo, System.Reflection.MethodInfo> vp
    System.Text.StringBuilder cscode
    | Improve this Doc View Source

    BytesToGuid(Byte[])

    Declaration
    public static Guid BytesToGuid(byte[] bytes)
    Parameters
    Type Name Description
    System.Byte[] bytes
    Returns
    Type Description
    System.Guid
    | Improve this Doc View Source

    GetCsName(String)

    Declaration
    public static string GetCsName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetDataReaderValue(Type, Object)

    Declaration
    public static object GetDataReaderValue(Type type, object value)
    Parameters
    Type Name Description
    System.Type type
    System.Object value
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    GetDataReaderValueBlockExpression(Type, Expression)

    Declaration
    public static Expression GetDataReaderValueBlockExpression(Type type, Expression value)
    Parameters
    Type Name Description
    System.Type type
    System.Linq.Expressions.Expression value
    Returns
    Type Description
    System.Linq.Expressions.Expression
    | Improve this Doc View Source

    GetDbParamtersByObject<T>(String, Object, String, Func<String, Type, Object, T>)

    Declaration
    public static T[] GetDbParamtersByObject<T>(string sql, object obj, string paramPrefix, Func<string, Type, object, T> constructorParamter)
        where T : IDataParameter
    Parameters
    Type Name Description
    System.String sql
    System.Object obj
    System.String paramPrefix
    System.Func<System.String, System.Type, System.Object, T> constructorParamter
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    GuidToBytes(Guid)

    Declaration
    public static byte[] GuidToBytes(Guid guid)
    Parameters
    Type Name Description
    System.Guid guid
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    ReplaceSqlConstString(String, Dictionary<String, String>, String)

    Declaration
    public static string ReplaceSqlConstString(string sql, Dictionary<string, string> parms, string paramPrefix = "@")
    Parameters
    Type Name Description
    System.String sql
    System.Collections.Generic.Dictionary<System.String, System.String> parms
    System.String paramPrefix
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    StringToChar(String)

    Declaration
    public static char StringToChar(string str)
    Parameters
    Type Name Description
    System.String str
    Returns
    Type Description
    System.Char
    | Improve this Doc View Source

    ToBigInteger(String)

    Declaration
    public static BigInteger ToBigInteger(string that)
    Parameters
    Type Name Description
    System.String that
    Returns
    Type Description
    System.Numerics.BigInteger
    | Improve this Doc View Source

    ToStringConcat(Object)

    Declaration
    public static string ToStringConcat(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX