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

请问主键可以不设置吗?或者自增的主键支持吗? #5

Open
lbhbrave opened this issue Jul 16, 2016 · 1 comment
Open

Comments

@lbhbrave
Copy link

No description provided.

@Zepo
Copy link
Owner

Zepo commented Jul 16, 2016

可以不指定主键。
整数型的主键默认都是自增的,save 的时候主键填 0 就行了,这时候 save 是同步的,save 完框架内会把主键值填好。

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