Class ExpressionCallContext
Inheritance
System.Object
ExpressionCallContext
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.DataAnnotations
Assembly: FreeSql.dll
Syntax
public class ExpressionCallContext
Properties
| Improve this Doc View SourceDataType
数据库类型,可用于适配多种数据库环境
Declaration
public DataType DataType { get; }
Property Value
| Type | Description |
|---|---|
| DataType |
DbParameter
主对象的参数化对象,可重塑其属性
Declaration
public DbParameter DbParameter { get; }
Property Value
| Type | Description |
|---|---|
| System.Data.Common.DbParameter |
FormatSql
将 c# 对象转换为 SQL
Declaration
public Func<object, string> FormatSql { get; }
Property Value
| Type | Description |
|---|---|
| System.Func<System.Object, System.String> |
ParsedContent
已解析的表达式中参数内容
Declaration
public Dictionary<string, string> ParsedContent { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.String> |
RawExpression
表达式原始值
Declaration
public Dictionary<string, Expression> RawExpression { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Linq.Expressions.Expression> |
Result
返回表达式函数表示的 SQL 字符串
Declaration
public string Result { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
UserParameters
可附加参数化对象
注意:本属性只有 Where 的表达式解析才可用
Declaration
public List<DbParameter> UserParameters { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Data.Common.DbParameter> |
Utility
Declaration
public ExpressionCallContext.IUtility Utility { get; }
Property Value
| Type | Description |
|---|---|
| ExpressionCallContext.IUtility |