无实体能否增加手动指定IgnoreColumns 返回
SqlSugar
沟通中
1
108
鱻 发布于4天前
悬赏:0 飞吻
目前在无实体对象中, IgnoreColumns的指定是无效的:
GetDBHelper().Utilities.PageEach(list, 2000, pageList =>
{
var t = GetDBHelper().Storageable(pageList).As(tableName).WhereColumns(new string[] { primaryKey }).ToStorage();
count = t.AsInsertable.IgnoreColumns("Staus").ExecuteCommand();
count2 = t.AsUpdateable.ExecuteCommand();
});
大佬能不能让无实体对象IgnoreColumns也有效, 在实际应用场景中存在很多继承类, 这些继承类有自己的Column属性标识, 开发人员可以根据这种业务场景手动遍历出需要忽略的列.
热忱回答(1)
-
fate sta VIP04天前
https://www.donet5.com/Home/Doc?typeId=2366
按模版提供完整的DEMO
0 回复