Skip to content

v4.0.29

Choose a tag to compare

@Ahoo-Wang Ahoo-Wang released this 18 Apr 13:02
· 329 commits to master since this release
  1. Bypass the caching policy after opening a transaction
  2. add TransactionMiddleware
  3. add SmartSql.DyRepository.Annotations.UseTransactionAttribute
        [UseTransaction]
        long DoByAnnotationTransaction(AllPrimitive entity);
 <Statement Id="DoByTransaction" Transaction="Unspecified">
// do-something-0 
// do-something-1
// do-something-2 
// do-something-3 
</Statement>
            var id = DbSession.ExecuteScalar<long>(new RequestContext
            {
                Scope = nameof(User),
                SqlId = "Insert",
                Transaction = IsolationLevel.Unspecified,
                Request = new User
                {
                   UserName= "SmartSql",
                }
            });