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

逻辑删除增加一个参数 #989

Closed 66damon66 closed 2 years ago

66damon66 commented 2 years ago

逻辑删除能否增加一个参数,目前看了下源码,默认是bool类型的,烦请增加一个参数,可能我逻辑删除栏位是int或者string类型的,所对应的逻辑删除值能够自己传入 谢谢

DotNetNext commented 2 years ago

好的后面优化关注 https://www.donet5.com/Home/Doc?typeId=1213

DotNetNext commented 2 years ago

ExecuteCommand(string LogicFieldName = null,object deleteValue=null,string deleteTimeFieldName = null)

  1. LogicFieldName(逻辑删除列,默认等于isdeleted)
  2. deleteValue (默认是true为删除值 )
  3. deleteTimeFieldName(删除时间列,指定后删除时会更新成当前时间)
DotNetNext commented 2 years ago

这个重载丰富了一下 ,近期会同步

kuangshp commented 1 year ago

DeleteTimeFieldName有使用案例吗