Skip to content

关于事务主动赋予的支持 #446

@JonFly

Description

@JonFly

能否在ICapPublisher或其他可注入的类中开放事务属性允许主动赋值, 目前Transaction属性是只读的, 是否有其他办法解决?

在特定的架构下, 比如使用UnitOfWork拦截器来负责数据库事务提交, 这种情况事务本身并不显性出现在业务代码中, 不会存在using(var trans...){} , 如果能允许主动将UnitOfWork的事务或DbContext赋值给_capbus可以适应更多场景.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions