using Tiobon.Core.DB; namespace Tiobon.Core.Services; public partial class PasswordLibServices : BaseServices, IPasswordLibServices { IBaseRepository _dal; public PasswordLibServices(IBaseRepository dal) { this._dal = dal; base.BaseDal = dal; } [UseTran(Propagation = Propagation.Required)] public async Task TestTranPropagation2() { await _dal.Add(new PasswordLib() { IsDeleted = false, plAccountName = "aaa", plCreateTime = DateTime.Now }); return true; } [UseTran(Propagation = Propagation.Mandatory)] public async Task TestTranPropagationNoTranError() { await _dal.Add(new PasswordLib() { IsDeleted = false, plAccountName = "aaa", plCreateTime = DateTime.Now }); return true; } [UseTran(Propagation = Propagation.Nested)] public async Task TestTranPropagationTran2() { await _dal.Add(new PasswordLib() { IsDeleted = false, plAccountName = "aaa", plCreateTime = DateTime.Now }); return true; } }