From 9f32b34879a1ec2714b2f01ebc79d9938b09c48f Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Wed, 16 Aug 2023 13:09:51 +0800 Subject: [PATCH] update --- Update-Data.md | 8 ++++++++ 修改.md | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/Update-Data.md b/Update-Data.md index 2d8e3b4..bfe066c 100644 --- a/Update-Data.md +++ b/Update-Data.md @@ -158,6 +158,14 @@ fsql.Update() > 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 diff --git a/修改.md b/修改.md index 6f89d4f..813fe72 100644 --- a/修改.md +++ b/修改.md @@ -161,6 +161,11 @@ fsql.Update() > SetSource 默认依赖实体 IsPrimary 特性,临时主键可使用 SetSource(items, a => a.Code) +> Oracle CASE when N'' 字符集不匹配, + +- 原因:实体主键 Column DbType 与表类型不一致造成, +- 解决:[Column(DbType = "varchar2", StingLength = 255)] + ## 4、自定义SQL ```csharp