arch / UnitOfWork

A plugin for Microsoft.EntityFrameworkCore to support repository, unit of work patterns, multiple database with distributed transaction supported, and MySQL multiple databases/tables sharding supported.
MIT License
1.34k stars 343 forks source link

UnitOfWork中SaveChangesAsync两个重载很歧义啊 #137

Open iMaxSys opened 4 years ago

iMaxSys commented 4 years ago

public async Task SaveChangesAsync(bool ensureAutoHistory = false) public async Task SaveChangesAsync(bool ensureAutoHistory = false, params IUnitOfWork[] unitOfWorks)

panda-big commented 4 years ago

不歧义啊 public async Task SaveChangesAsync(bool ensureAutoHistory = false) 是同一上下文的 public async Task SaveChangesAsync(bool ensureAutoHistory = false, params IUnitOfWork[] unitOfWorks)这个是不同上下文,作者原本想的是做分布式事务的,但是.net core 取消了 dtc ,所以这个方法里面的分布式事务的功能相当于失效了。