using (var db = new REF_ParkAzureEntities())
{
using (var trans = db.Database.BeginTransaction())
{
try
{
trans.Commit();
}
catch (Exception ex)
{
trans.Rollback();
throw;
}
}
}
网友评论