mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-20 23:30:57 +08:00
Updated 类型映射 (markdown)
6
类型映射.md
6
类型映射.md
@@ -80,6 +80,12 @@ fsql.Select<Table>().Where(a => a.Options.Value1 == 100 && a.Options.Value2 == "
|
||||
//WHERE json_extract(a."Options",'$.Value1') = 100 AND json_extract(a."Options",'$.Value2') = 'xx'
|
||||
```
|
||||
|
||||
##DateOnly/TimeOnly
|
||||
|
||||
目前只有 FreeSql.Provider.SqlServer/PostgreSQL/MySql/MySqlConnector/KingbaseES/Duckdb 几个包实现了映射(v3.5.100)
|
||||
|
||||
DateOnly/TimeOnly 定义在 .net6、7、8 中适配非常难受,其他 Provider 可参考 TypeHandlers(自定义) 解决映射。
|
||||
|
||||
## TypeHandlers(自定义)
|
||||
|
||||
```csharp
|
||||
|
||||
Reference in New Issue
Block a user