DotNetNext / SqlSugar

.Net aot ORM Fastest ORM Simple Easy VB.NET Sqlite orm Oracle ORM Mysql Orm 虚谷数据库 postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb ,TDengine ORM,OceanBase orm,GaussDB orm ,Tidb orm Object/Relational Mapping
https://www.donet5.com/Home/Doc
MIT License
5.35k stars 1.34k forks source link

希望增加一个修改过滤接口 #261

Closed 840900649 closed 5 years ago

840900649 commented 5 years ago

希望在UpdateableProvider 下增加以下接口。应用场景为数据权限控制时,指定用户修改字段权限,就只能拥有修改相应字段。类似InsertableProvider 类下的。 InsertColumns(string[] columns)

public IUpdateable UpdateColumns(string[] columns) { this.UpdateBuilder.DbColumnInfoList = this.UpdateBuilder.DbColumnInfoList.Where(it => columns.Contains(it.PropertyName, StringComparer.OrdinalIgnoreCase)).ToList(); return this; }

DotNetNext commented 5 years ago

已增加等同步