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

批量删除及更新用于工作单元的问题 #33

Closed
fen617193145 opened this issue Sep 24, 2021 · 1 comment
Closed

批量删除及更新用于工作单元的问题 #33

fen617193145 opened this issue Sep 24, 2021 · 1 comment

Comments

@fen617193145
Copy link

好像批量删除及更新都是内部直接savechanges了,那么在工作单元中该怎么使用呢?

@yangzhongke
Copy link
Owner

我这个就是用来解决ef core批量操作性能瓶颈用的。
如果你的批量操作不构成性能平静,你就还继续用ef core的删除、更新机制就行了。
DDD有局限性,所以不需要什么地方都恪守DDD的原则。需要开发者在性能和DDD原则之间做出妥协。

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