コード例 #1
0
        public async Task <int> UpdateAsync(SampleTable t, CancellationToken token)
        {
            using var tran = TransactionScopeBuilder.Create(); // if transaction needed.

            using var session = sessionManager.OpenSession();
            var updResult = await session.Db.UpdateAsync(t, token : token);

            tran.Complete();

            return(updResult);
        }