mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
## v0.3.21
- 增加 IUpdate IgnoreColumns 重载方法,支持传入字符串数组忽略修改; - 完善 FreeSql.DbContext,支持对象操作 + SaveChanges 最后保存操作;
This commit is contained in:
@ -38,6 +38,12 @@ namespace FreeSql {
|
||||
/// <param name="columns">lambda选择列</param>
|
||||
/// <returns></returns>
|
||||
IUpdate<T1> IgnoreColumns(Expression<Func<T1, object>> columns);
|
||||
/// <summary>
|
||||
/// 忽略的列
|
||||
/// </summary>
|
||||
/// <param name="columns"></param>
|
||||
/// <returns></returns>
|
||||
IUpdate<T1> IgnoreColumns(string[] columns);
|
||||
|
||||
/// <summary>
|
||||
/// 设置列的新值,Set(a => a.Name, "newvalue")
|
||||
|
@ -1,4 +1,5 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using FreeSql.Internal.Model;
|
||||
using System;
|
||||
|
||||
namespace FreeSql {
|
||||
@ -81,5 +82,11 @@ namespace FreeSql {
|
||||
/// <param name="type"></param>
|
||||
/// <returns>未使用ConfigEntity配置时,返回null</returns>
|
||||
TableAttribute GetConfigEntity(Type type);
|
||||
/// <summary>
|
||||
/// 获取实体类核心配置
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
TableInfo GetTableByEntity(Type type);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user