mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-06 00:10:55 +08:00
update
@@ -158,6 +158,14 @@ fsql.Update<Topic>()
|
||||
|
||||
> After the specified `Set` column is updated, `SetSource` will become invalid
|
||||
|
||||
> SetSource defaults to relying on the IsPrimary attribute of the entity, and temporary primary keys can use SetSource (items, a=>a. Code)
|
||||
|
||||
> Oracle CASE when N '' character set mismatch,
|
||||
|
||||
- Reason: Inconsistency between entity primary key Column DbType and table type,
|
||||
|
||||
- Solution: [Column (DbType = "varchar2", StingLength = 255)]
|
||||
|
||||
## 4. Custom SQL
|
||||
|
||||
```csharp
|
||||
|
||||
5
修改.md
5
修改.md
@@ -161,6 +161,11 @@ fsql.Update<Topic>()
|
||||
|
||||
> SetSource 默认依赖实体 IsPrimary 特性,临时主键可使用 SetSource(items, a => a.Code)
|
||||
|
||||
> Oracle CASE when N'' 字符集不匹配,
|
||||
|
||||
- 原因:实体主键 Column DbType 与表类型不一致造成,
|
||||
- 解决:[Column(DbType = "varchar2", StingLength = 255)]
|
||||
|
||||
## 4、自定义SQL
|
||||
|
||||
```csharp
|
||||
|
||||
Reference in New Issue
Block a user