-
Notifications
You must be signed in to change notification settings - Fork 861
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
CodeFirst 中 char 类型如何处理? #235
Comments
[Column(DbType = “char”)] |
我试出来了。要 |
你的类型用的 char[] 吗,wiki 里面有映射文档表 |
不,我实体类型是 char,数据库的类型希望是 char(1),我是 SqlServer 数据库 |
实体属性类型 char,不能直接映射到数据库的 char(1)。我也理解了需要用 如果可以直接映射,应该会更好 |
Closed
2881099
pushed a commit
that referenced
this issue
Jul 22, 2020
2881099
pushed a commit
that referenced
this issue
Jul 22, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
实体属性类型为 char 时,貌似会被忽略掉。试了多种方式都没成功
The text was updated successfully, but these errors were encountered: