-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Version 6.0 : Breaking Changes #25
Comments
The |
Thank you for your opinion:
However, Our |
While sole responsibility is important, it is not a requirement. Names
Wouldn't it be much more reasonable to continue as ? Or could this be an option?
I understand that principles are important. |
@serdarozkan41 Thank you so much for your opinion. If we keep all the methods, it will create a lot of confusion for the end users. I would like to keep things simple. |
I don't see any disadvantage on the new approach, as long as multiple operations can still work in case of using transactions. Don't like the .Commit() since EF Core uses this to commit transactions and it would be confusing. I think the closest it ressembles to EF Core the better, so Add(), Remove() and Update() are my choices. By the way, you have this typo "TDbConext" in some files that should be corrected until further versions are out.
|
Currently,
IRepository
command methods are callingawait _dbContext.SaveChangesAsync()
internally, which arguably breaks the single responsibility pattern. So we have decided to bring theawait _dbContext.SaveChangesAsync()
out of the following methods:The above methods will be replaced with the following methods:
And to persist the changes to the database, the user has to call the
await _repository.SaveChangesAsync()
explicitly.Currently:
In from version 6.0:
However, what should be the next method names:
or
Please share your thoughts.
The text was updated successfully, but these errors were encountered: