yangzhongke / Zack.EFCore.Batch

Deleting or Updating multiple records from a LINQ Query in a SQL statement without loading entities
GNU General Public License v3.0
590 stars 85 forks source link

当多个更新值写成常量值一样时会报错! #97

Closed weiwin123 closed 1 year ago

weiwin123 commented 1 year ago

_DataContext.BatchUpdate().Where(t => t.Id == order.Id).Set(t => t.PayStatus, t => 4).Set(t=>t.State,t=> 4).ExecuteAsync()

One or more errors occurred. (The count of columns initializersSet and ProjectionSQL should equal

yangzhongke commented 1 year ago

抱歉,无法重现这个问题,请提供一个能重现一个这个问题的最简单的项目(不要上传整个项目,只要弄一个能重现问题的小项目即可)。可以把项目打包传上来或者放到github

weiwin123 commented 1 year ago

抱歉,我单独建了个项目去复现,结果也没复现出来