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

关于实体主键的问题 #9

Closed
qesadwzxc opened this issue Oct 10, 2019 · 1 comment
Closed

关于实体主键的问题 #9

qesadwzxc opened this issue Oct 10, 2019 · 1 comment

Comments

@qesadwzxc
Copy link

我知道实体属性添加了[Column()]后则标识为主键,insert时会忽略这个属性
但是我的主键是guid,我看到模板实体里面ColumnAttribute有个Extra参数可以标识该字段是否自增,现在为什么去掉了呢?
现在如果我想实现insert时不排除加了IsIdentity = true的属性该怎么做呢?

@soul-soft
Copy link
Owner

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