Files
2026-10-08 10:43:59 +08:00

9 lines
366 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace F9WebAiTest.Application.Interfaces.UOW;
/// <summary>工作单元:在事务内执行一组操作(简化版,替代 F9 的 Begin/Commit/Rollback)</summary>
public interface IUnitOfWork_F9
{
/// <summary>在事务内执行操作,返回是否提交成功(异常自动回滚)</summary>
Task<bool> ExecuteWithUow(Func<Task<bool>> func);
}