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

Oracle11g中FreeSql.Generator生成DATE类型实体的问题 #627

Closed
hvppy opened this issue Dec 31, 2020 · 1 comment
Closed

Oracle11g中FreeSql.Generator生成DATE类型实体的问题 #627

hvppy opened this issue Dec 31, 2020 · 1 comment

Comments

@hvppy
Copy link

hvppy commented Dec 31, 2020

oracle11g中定义的类型为DATE,用工具FreeSql.Generator生成的实体属性为[JsonProperty, Column(DbType = "DATE(7)")],然后codefirst根据实体创建表的时候就会有问题:ORA-00907: missing right parenthesis,是因为生成的语句为:"MyDate" DATE(7),这个写法oracle报错,改为[JsonProperty, Column(DbType = "DATE")]之后程序可以正常执行

@2881099
Copy link
Collaborator

2881099 commented Dec 31, 2020

好的,先改模板再生成一次解决当下使用问题

@2881099 2881099 closed this as completed Jan 5, 2021
2881099 added a commit that referenced this issue Jan 5, 2021
2881099 added a commit that referenced this issue Feb 19, 2021
2881099 added a commit that referenced this issue Mar 4, 2021
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