update

2881099
2023-08-16 13:09:51 +08:00
parent 059200d9d7
commit 9f32b34879
2 changed files with 13 additions and 0 deletions

@@ -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

@@ -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