Comments (3)
https://www.donet5.com/ask/9/23119
from sqlsugar.
未重现你的问题
from sqlsugar.
下面是完整的测试用例,你可以新建库进行测试
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
namespace OrmTest
{
internal class Unitdfafaaa
{
public static void Init()
{
var db = NewUnitTest.Db;
db.CodeFirst.InitTables<Invoice>();
var result = db.Updateable<Invoice>(new Invoice() { })
.WhereColumns(c => new { c.comp_code, c.adi_order, c.invoice_no, c.cust_po_no })
.UpdateColumns(u => new { u.customer_original_po })
.ExecuteCommandAsync().GetAwaiter().GetResult();
}
[SqlSugar.SugarTable("inv_master")]
public class Invoice
{
[SqlSugar.SugarColumn(IsIdentity = true)]
public long id { get; set; }
public string comp_code { get; set; } = "a";
public string adi_order { get; set; } = "a";
public string invoice_no { get; set; } = "a";
public string cust_po_no { get; set; } = "a";
public string customer_original_po { get; set; } = "a";
}
}
}
from sqlsugar.
Related Issues (20)
- PostgreSql Insertable 一串 List 的时候, 9999-12-31 23:59:59.999999 会变成 “ HOT 4
- PostgreSql Insertable 一串 List 的时候, 9999-12-31 23:59:59.999999 会变成 "10000-01-01 00:00:00" HOT 5
- [SplitTable] No gen Sql query when use SplitTable(dateBegin,dateEnd)
- Issue Running Simple MAUI App Android HOT 4
- 操作数类型冲突: uniqueidentifier 与 bigint 不兼容 HOT 11
- 在调用 Db.CodeFirst.InitTables(@"xxx.xxx.models"); 显示System.IO.FileNotFoundException: Could not load file or assembly HOT 3
- 有增加国产数据库yashandb的计划吗 HOT 5
- SampleBy方法中的SampleByUnit 有bug,sampleBy.ToString().Substring(0, 1).ToLower()这个如果是Month,会按照分钟计算 HOT 10
- DBFrist產生出來的Class名稱跟屬性名稱相同 HOT 4
- DBFrist可以添加required關鍵字嗎? HOT 11
- 支持 Apache Kyubbi 吗? HOT 2
- Npgsql.PostgresException: 42804: HOT 11
- SqlFunc.Subqueryable 跨库子查询联表无效 HOT 2
- ToPageList和ToOffsetPage,在Postgre 15下分页返回数据异常 HOT 19
- 使用逻辑删除LogicDeleteProvider.ExecuteCommandAsync出现.NullReferenceException异常 HOT 6
- 关联表过滤器问题 HOT 3
- PG数据库添加字段默认值问题 HOT 10
- 国内BUG统一提交入口 - 世界上最勤快的开源,秒解决 HOT 1
- 使用ODBC连接的时候可以成功连接,但是不能读取数据 HOT 4
- 加一个 find_in_set 我怎么没有找到 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlsugar.