Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateOnly 字段不能生成到插入语句中 #1763

Closed
sqlite-me opened this issue Mar 28, 2024 · 2 comments
Closed

DateOnly 字段不能生成到插入语句中 #1763

sqlite-me opened this issue Mar 28, 2024 · 2 comments

Comments

@sqlite-me
Copy link

sqlite-me commented Mar 28, 2024

问题描述及重现代码:

实体中有DateOnly 的字段

        [Column(TypeName = "date")]
        public DateOnly begin { get; set; }
        [Column(TypeName = "date")]
        public DateOnly end { get; set; }

生成的插入语句中,缺少这两个字段

数据库版本

mysql 10.5.5-MariaDB

nuget包:

FreeSql.All 3.2.820

目标框架: .net 6.0, dotnet --version 8.0.200

Tasks

No tasks being tracked yet.
@sqlite-me
Copy link
Author

特性使用的是 System.ComponentModel.DataAnnotations 命令空间里的

@2881099
Copy link
Collaborator

2881099 commented Mar 28, 2024

只有sqlserver处理了新类型

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants