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

关于一个操作涉及到多个表事务的处理的问题 #30

Closed
micat707 opened this issue Apr 10, 2018 · 1 comment
Closed

关于一个操作涉及到多个表事务的处理的问题 #30

micat707 opened this issue Apr 10, 2018 · 1 comment

Comments

@micat707
Copy link

想问下,如果一个业务操作需要事务,涉及到A,B,C三个表。这三个表的修改都只在同一个分片shard_0中。此时,如何处理事务呢?是否可以用DalTransactional注解?

@hejiehui
Copy link
Collaborator

只要是同一个数据库上的操作都可以包在事务里。你可以用DalCommand或者注解

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

3 participants