diff --git a/实体特性.md b/实体特性.md index 1388aa8..397db99 100644 --- a/实体特性.md +++ b/实体特性.md @@ -71,12 +71,18 @@ class Topic { > 当 string 长度 -1 时产生的映射如下: -| MySql | PostgreSQL | SqlServer | Oracle | Sqlite | MsAccess | -| - | - | - | - | - | - | -| text | text | varchar(max) | nclob | text | longtext | +| MySql | PostgreSQL | SqlServer | Oracle | Sqlite | MsAccess | 达梦 | 金仓 | 神通 | +| - | - | - | - | - | - | - | - | - | +| text | text | varchar(max) | nclob | text | longtext | text | text | text | > 注意:Oracle nclob 需要 v1.3.2+ 版本才支持,否则将映射 nvarchar2(4000) +> v1.6.0 + byte[] 指定长度 [MaxLength(-1)] 或者 [Column(StringLength = -1)],当长度 -1 时产生的映射如下: + +| MySql | PostgreSQL | SqlServer | Oracle | Sqlite | MsAccess | 达梦 | 金仓 | 神通 | +| - | - | - | - | - | - | - | - | - | +| longblob | bytea | varbinary(max) | blob | blob | blob | blob | bytea | bytea | + ## 服务器时间(ServerTime) ```csharp diff --git a/更新日志.md b/更新日志.md index 7f4f179..7593d98 100644 --- a/更新日志.md +++ b/更新日志.md @@ -9,6 +9,7 @@ - 增加 IUnitOfWork Orm 属性直接访问 IFreeSql CRUD 事务与工作单元一致; - 增加 SqlExt 常用开窗函数的自定义表达式解析; - 增加 SqlExt.Case().When(..).End() 自定义表达式解析; +- 增加 StringLength/MaxLength 对 byte\[\] 的支持; - 修复 IFreeSql.InsertOrUpdate Merge into 未处理 CanUpdate 的问题;#330 - 修复 IUpdate Set(表达式) MapType 未生效的问题; - 修复 表达式 Not 位运算符解析错误;#340 diff --git a/类型映射.md b/类型映射.md index 1cb3b9f..a5e7472 100644 --- a/类型映射.md +++ b/类型映射.md @@ -76,12 +76,18 @@ public class S_SysConfig { > string 指定长度 [Column(DbType = "varchar(max)")] 或者 [MaxLength(-1)] 或者 [Column(StringLength = -1)],当长度 -1 时产生的映射如下: -| MySql | PostgreSQL | SqlServer | Oracle | Sqlite | MsAccess | -| - | - | - | - | - | - | -| text | text | varchar(max) | nclob | text | longtext | +| MySql | PostgreSQL | SqlServer | Oracle | Sqlite | MsAccess | 达梦 | 金仓 | 神通 | +| - | - | - | - | - | - | - | - | - | +| text | text | varchar(max) | nclob | text | longtext | text | text | text | > 注意:Oracle nclob 需要 v1.3.2+ 版本才支持,否则将映射 nvarchar2(4000) +> v1.6.0 + byte[] 指定长度 [MaxLength(-1)] 或者 [Column(StringLength = -1)],当长度 -1 时产生的映射如下: + +| MySql | PostgreSQL | SqlServer | Oracle | Sqlite | MsAccess | 达梦 | 金仓 | 神通 | +| - | - | - | - | - | - | - | - | - | +| longblob | bytea | varbinary(max) | blob | blob | blob | blob | bytea | bytea | + ## MySql 特别类型映射 | csharp | MySql |