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

mysql中的无符号bigint型字段生成的实体类属性类型是string,自定了类型配置也不行 #23

Open
JavaFellow opened this issue Jul 20, 2024 · 3 comments

Comments

@JavaFellow
Copy link

JavaFellow commented Jul 20, 2024

mysql中的无符号bigint型字段生成的实体类属性类型是string,应该生成long,自定了类型配置也不行。
mysql中:
image
生成的实体类:
image

@JavaFellow JavaFellow changed the title mysql中的无符号long型字段生成的实体类属性类型是string,自定了类型配置也不行 mysql中的无符号bigint型字段生成的实体类属性类型是string,自定了类型配置也不行 Jul 20, 2024
@DotNetNext
Copy link
Owner

改模版就行了。

@DotNetNext
Copy link
Owner

https://www.donet5.com/Doc/33
或者用新版本的生成器

@JavaFellow
Copy link
Author

改模版就行了。

有符号的bigint能映射成long,但无符号不行。请问模板怎么改?自己配置{"Name":"bigint","Length":null,"DecimalDigits":null}貌似不行,不知道无符号对应的配置是什么。

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