Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iMaxSys opened this issue Apr 19, 2020 · 1 comment
Open

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

iMaxSys opened this issue Apr 19, 2020 · 1 comment

Comments

@iMaxSys
Copy link

iMaxSys commented Apr 19, 2020

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

@iMaxSys iMaxSys changed the title UnitOfWork中的这一行可以不写啊 UnitOfWork中SaveChangesAsync两个重载很歧义啊 Apr 19, 2020
@panda-big
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants