mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 调整 IUpdate.SetDto 也支持 IgnoreClumns 的逻辑;
This commit is contained in:
parent
1afca09152
commit
0838599b78
@ -222,6 +222,15 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</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">
|
<member name="P:FreeSql.IBaseRepository.Orm">
|
||||||
<summary>
|
<summary>
|
||||||
注意:IFreeSql 属于顶级对象,事务无法自动传递。<para></para>
|
注意:IFreeSql 属于顶级对象,事务无法自动传递。<para></para>
|
||||||
|
@ -476,6 +476,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
foreach (var kv in dic)
|
foreach (var kv in dic)
|
||||||
{
|
{
|
||||||
if (_table.ColumnsByCs.TryGetValue(kv.Key, out var trycol) == false) continue;
|
if (_table.ColumnsByCs.TryGetValue(kv.Key, out var trycol) == false) continue;
|
||||||
|
if (_ignore.ContainsKey(kv.Key)) continue;
|
||||||
SetPriv(trycol, kv.Value);
|
SetPriv(trycol, kv.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -483,6 +484,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
foreach (var dtoProp in dtoProps)
|
foreach (var dtoProp in dtoProps)
|
||||||
{
|
{
|
||||||
if (_table.ColumnsByCs.TryGetValue(dtoProp.Name, out var trycol) == false) continue;
|
if (_table.ColumnsByCs.TryGetValue(dtoProp.Name, out var trycol) == false) continue;
|
||||||
|
if (_ignore.ContainsKey(dtoProp.Name)) continue;
|
||||||
SetPriv(trycol, dtoProp.GetValue(dto, null));
|
SetPriv(trycol, dtoProp.GetValue(dto, null));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user