当前位置:网站首页>C# 使用SqlSugar Updateable系统报错无效数字,如何解决?求指导!
C# 使用SqlSugar Updateable系统报错无效数字,如何解决?求指导!
2022-07-27 02:23:00 【CSDN问答】
代码:
for (int i = 1; i <10; i++) { var UpdateSN = new WF_UNITINFO(); { UpdateSN.ID = "202207200000" + i; UpdateSN.UNITID = "DEV202207200000" + i; UpdateSN.UNITID56 = "DEV202207200000" + i + "202000000001TEST0" + i; } db.Updateable<WF_UNITINFO>(UpdateSN).UpdateColumns(it => new { it.ID, it.UNITID, it.UNITID56}) .Where(it=>it.UNITID == "DEV202207200000" + i).ExecuteCommand(); }(it=>it.UNITID == "DEV202207200000" + i)
使用Convert强制转换也一样报错
系统报错:
Oracle.ManagedDataAccess.Client.OracleException HResult=0x80004005 Message=ORA-01722: 无效数字 Source=Oracle Data Provider for .NET, Managed Driver StackTrace: at SqlSugar.AdoProvider.ExecuteCommand(String sql, SugarParameter[] parameters) at SqlSugar.UpdateableProvider`1.ExecuteCommand() at SqlSugar.OracleUpdateable`1.ExecuteCommand() at Queryable.Program.Main(String[] args) in D:\C#\Practice02\Queryable\Program.cs:line 114边栏推荐
- typescript ts 基础知识之接口、泛型
- Member array and pointer in banyan loan C language structure
- Volatile keyword and its function
- Smart pointer shared_ ptr、unique_ ptr、weak_ ptr
- Will this flinkcdc monitor all tables in the database? Or the designated table? I look at the background log. It monitors all tables. If it monitors
- Is Jiufang intelligent investment a regular company? Talk about Jiufang intelligent investment
- redis入门练习
- Insert pictures and videos in typera
- MySQL underlying data structure
- Double disk: the main differences between DFS and BFS, the differences in ideology, and the differences in code implementation
猜你喜欢

app端接口用例设计方法和测试方法

unity之二维数组实现正六边形地图

Redis spike case, learn from Shang Silicon Valley teacher in station B

redis入门练习

Contour detection based on OpenCV (2)

Basic concept and essence of Architecture

How to interact with the server when the client sends an SQL message

NLP hotspots from ACL 2022 onsite experience

A new paradigm of distributed deep learning programming: Global tensor

Spark: calculate the average value of the same key in different partitions (entry level - simple implementation)
随机推荐
Machine learning [Matplotlib]
若依框架代码生成详解
[untitled] JDBC connection database read timeout
Csu18m91 is used as the master controller of the intelligent scale scheme
Binary tree (day 82)
Principle understanding and application of hash table and consistent hash
Deployment of ruoyi's environment and operation of the system
智能体重秤方案主控采用CSU18M91
How to interact with the server when the client sends an SQL message
Penetration test - post penetration - Trace cleaning
Design method and test method of APP interface use case
Banyan loan,
222. 完全二叉树的节点个数
LeetCode 第二十七天
Spark: ranking statistics of regional advertising hits (small case)
Smart pointer shared_ ptr、unique_ ptr、weak_ ptr
【正则】判断, 手机号,身份证号
The function and application of lpci-252 universal PCI interface can card
Do you really understand code rollback?
Contour detection based on OpenCV (2)