mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 ISelect.ToDataTable 系列方法;
- 增加 无参数化命令执行,可配置全局 ICodeFirst.IsNoneCommandParameter、或临时 IInsert/IUpdate.NoneParameter() 便于调试; - 关闭 自动同步结构功能,避免线上环境误操作; - 优化 IInsert 批量插入容易导致 values 过多、或参数化过多的问题,5个数据库均已优化;
This commit is contained in:
@ -40,6 +40,12 @@ namespace FreeSql {
|
||||
/// <returns></returns>
|
||||
IInsert<T1> IgnoreColumns(Expression<Func<T1, object>> columns);
|
||||
|
||||
/// <summary>
|
||||
/// 不使用参数化,可通过 IFreeSql.CodeFirst.IsNotCommandParameter 全局性设置
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IInsert<T1> NoneParameter();
|
||||
|
||||
/// <summary>
|
||||
/// 设置表名规则,可用于分库/分表,参数1:默认表名;返回值:新表名;
|
||||
/// </summary>
|
||||
|
@ -14,6 +14,12 @@ namespace FreeSql {
|
||||
/// <returns></returns>
|
||||
IUpdate<T1> WithTransaction(DbTransaction transaction);
|
||||
|
||||
/// <summary>
|
||||
/// 不使用参数化,可通过 IFreeSql.CodeFirst.IsNotCommandParameter 全局性设置
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IUpdate<T1> NoneParameter();
|
||||
|
||||
/// <summary>
|
||||
/// 更新数据,设置更新的实体
|
||||
/// </summary>
|
||||
|
@ -22,6 +22,10 @@ namespace FreeSql {
|
||||
/// </summary>
|
||||
bool IsConfigEntityFromDbFirst { get; set; }
|
||||
/// <summary>
|
||||
/// 不使用命令参数化执行,针对 Insert/Update
|
||||
/// </summary>
|
||||
bool IsNoneCommandParameter { get; set; }
|
||||
/// <summary>
|
||||
/// 延时加载导航属性对象,导航属性需要声明 virtual
|
||||
/// </summary>
|
||||
bool IsLazyLoading { get; set; }
|
||||
|
Reference in New Issue
Block a user