YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* トランザクション [#a47eb55c]
try
{
using (var tran = con.BeginTransaction())
{
try
{
con.Execute("insert into t1 values (1, 'ABC'...
tran.Commit();
}
catch (Exception e)
{
tran.Rollback();
}
}
}
finally
{
con.Execute("drop table t1");
}
** 参考 [#ba571a1e]
- http://msdn.microsoft.com/ja-jp/library/86773566(v=vs.1...
- https://github.com/SamSaffron/dapper-dot-net/blob/maste...
終了行:
* トランザクション [#a47eb55c]
try
{
using (var tran = con.BeginTransaction())
{
try
{
con.Execute("insert into t1 values (1, 'ABC'...
tran.Commit();
}
catch (Exception e)
{
tran.Rollback();
}
}
}
finally
{
con.Execute("drop table t1");
}
** 参考 [#ba571a1e]
- http://msdn.microsoft.com/ja-jp/library/86773566(v=vs.1...
- https://github.com/SamSaffron/dapper-dot-net/blob/maste...
ページ名: