Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# “获取错误”;无效的列名";使用实体框架和批量更新_C#_Sql Server_Entity Framework 6 - Fatal编程技术网

C# “获取错误”;无效的列名";使用实体框架和批量更新

C# “获取错误”;无效的列名";使用实体框架和批量更新,c#,sql-server,entity-framework-6,C#,Sql Server,Entity Framework 6,我正在尝试使用C#中的Entity Framework 6.4.4批量更新SQL Server数据库表中的特定行,Entity Framework plus提供的批量更新使用 db.APPLICATION_TAB.Where(x => Apps.Contains(x.EMV_CARD_ACCEPTOR_TERM_ID)) .Update(x => new APPLICATION_TAB

我正在尝试使用C#中的Entity Framework 6.4.4批量更新SQL Server数据库表中的特定行,Entity Framework plus提供的批量更新使用

db.APPLICATION_TAB.Where(x => Apps.Contains(x.EMV_CARD_ACCEPTOR_TERM_ID))
                  .Update(x => new APPLICATION_TAB
                                   {
                                       CONFIG_VERSION = x.CONFIG_VERSION + 1,
                                       LAST_UPDATED = DateTime.Now
                                   });
其中
应用程序
是一个
列表

但我得到了这个错误:

列名“EMV\u卡\u接收器\u术语\u ID”无效

我之所以使用这个是因为性能问题,因为我一次更新大约50000行或更多行,所以如果有任何其他解决方案不影响性能,我很乐意听到