mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 ICodeFirst.IsGenerateCommandParameterWithLambda 选项,开启表达式解析的命令参数化;
- 增加 ExpressionCallContext 自定义函数上下文档 DbParameter 属性; - 修复 IncludeMany(a => a.x1.x2.Childs) 当 x1, x2 为 null 的报 null 错误;
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Common;
|
||||
using System.Text;
|
||||
|
||||
namespace FreeSql.DataAnnotations
|
||||
@ -18,11 +19,16 @@ namespace FreeSql.DataAnnotations
|
||||
/// <summary>
|
||||
/// 数据库类型,可用于适配多种数据库环境
|
||||
/// </summary>
|
||||
public DataType DataType { get; set; }
|
||||
public DataType DataType { get; internal set; }
|
||||
|
||||
/// <summary>
|
||||
/// 已解析的表达式中参数内容
|
||||
/// </summary>
|
||||
public Dictionary<string, string> Values { get; } = new Dictionary<string, string>();
|
||||
|
||||
/// <summary>
|
||||
/// 主对象的参数化对象,可重塑其属性
|
||||
/// </summary>
|
||||
public DbParameter DbParameter { get; internal set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user