![]() | CYQ.Data componentsCYQ.Data support multi-database application [Txt,Xml,Access, MSSQL, Oracle,SQLite,MySql], help easily and quickly to develop your project |
CYQ.Data 数据框架 事务使用帮助
Guide |
|
|
| #TopicOwner |
一:版本小区别 V5.0版本以前,Mssql/Oracle默认开启事务,其它数据库不开启。 V5.0及以后版本,默认事务全不开启,需要手动开启。 二:事务的使用: 1:手动开启事务[MProc的事务使用方式与MAction一致] using(MAction action = new MAction(TableNames.Users))
{
action.BeginTransation(); ...执行数据块...
可选1:action.SetTransLevel(IsolationLevel.ReadUncommitted);//自定义事务级别
可选2:action.RollBack();//事务回滚 可选3:action.ResetTable(新表)//切换表 action.EndTransation();//等同于事务Commit提交
action.BeginTransation();//重新开启新事务
...执行语句块2...
action.EndTransation();//提交新事务Commit提交
} ![]() |
游客[注册][221.10.117.*]2013/12/3 4:32:53 | #1 | |
![]() | 请问启用事务如何执行多表插入 reply: 通过action.ResetTable(其它表)来切换到不同的表。 |
Post Comment
Bulletin
Article Search
Categories
- Platform for dynamic (20)
- Feedback (9)
- Guide (33)
- Principles (19)
- Project-Case (8)
- Business & Buy (2)
- Technology exchange (45)
New Article
- CYQ.Data Components Getting Started Guide [Part 5]-[MProc Execute Stored Procedures or SQL]
- CYQ.Data Components Getting Started Guide [Part 4]-[MAction Insert Delete Update]
- CYQ.Data Components Getting Started Guide [Part 3]-[MAction Get And Set Value]
- CYQ.Data Components Getting Started Guide [Part 2]-[MAction Data Query- Fill And Select]
- CYQ.Data Components Getting Started Guide [Part 1]
New Comment
- When some one searches for his necessary thing, therefore he/she wishes to be available that in detail, so that thing is maintained over here.
- This is my first time pay a quick visit at here and i am in fact happy to read everthing at alone place.
- I truly appreciate this blog article.Really thank you! Cool.
- please pay a visit to the web sites we follow, like this one particular, as it represents our picks in the web
- Really enjoyed this post.Really thank you!
- Really enjoyed this article.Really looking forward to read more. Great.
- poker bonuses What are the norms of copyright of web content? How as it different from Patent?
- Wow! Thank you! I permanently needed to write on my blog something like that. Can I implement a fragment of your post to my site?
- This website was how do I say it? Relevant!! Finally I ave found something that helped me. Cheers!
- I was reading through some of your content on this internet site and I believe this web site is very informative ! Continue posting.