mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
- 调整 IUpdate.SetDto 也支持 IgnoreClumns 的逻辑;
This commit is contained in:
parent
1afca09152
commit
0838599b78
@ -222,6 +222,15 @@
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:FreeSql.FreeSqlRepositoryDependencyInjection.AddFreeRepository(Microsoft.Extensions.DependencyInjection.IServiceCollection,System.Action{FreeSql.FluentDataFilter},System.Reflection.Assembly[])">
|
||||
<summary>
|
||||
批量注入 Repository,可以参考代码自行调整
|
||||
</summary>
|
||||
<param name="services"></param>
|
||||
<param name="globalDataFilter"></param>
|
||||
<param name="assemblies"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:FreeSql.IBaseRepository.Orm">
|
||||
<summary>
|
||||
注意:IFreeSql 属于顶级对象,事务无法自动传递。<para></para>
|
||||
|
@ -476,6 +476,7 @@ namespace FreeSql.Internal.CommonProvider
|
||||
foreach (var kv in dic)
|
||||
{
|
||||
if (_table.ColumnsByCs.TryGetValue(kv.Key, out var trycol) == false) continue;
|
||||
if (_ignore.ContainsKey(kv.Key)) continue;
|
||||
SetPriv(trycol, kv.Value);
|
||||
}
|
||||
}
|
||||
@ -483,6 +484,7 @@ namespace FreeSql.Internal.CommonProvider
|
||||
foreach (var dtoProp in dtoProps)
|
||||
{
|
||||
if (_table.ColumnsByCs.TryGetValue(dtoProp.Name, out var trycol) == false) continue;
|
||||
if (_ignore.ContainsKey(dtoProp.Name)) continue;
|
||||
SetPriv(trycol, dtoProp.GetValue(dto, null));
|
||||
}
|
||||
return this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user