Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
- ABP Framework version: v5.1.3
- UI type: MVC
- DB provider: EF Core / MongoDB
- Tiered (MVC) or Identity Server Separated (Angular): yes / no
- Exception message and stack trace:
- Steps to reproduce the issue:"
We have couple of DTO objects with lot of properties (some are with around 89-90), when it comes to updating 1 or 2 fields we are forced to pass entire DTO object to update those 2 fileds even tough we have no changes to other fields.
As per the EF (in general) the update statement should handle the scenario and it should prepare the update statement with update of 2 fields only not for all...
Can you please provide how the things will work in the ABP way for both SQL and Mongo. in simple words we would like to know a process to update a object by passing required properties to have a limited data while transferring and having better query execution time.
10 Answer(s)
-
0
hi
As per the EF (in general) the update statement should handle the scenario and it should prepare the update statement with update of 2 fields only not for all...
You are using ef core 6.x, have you tried the ef core 7?
-
0
hi
As per the EF (in general) the update statement should handle the scenario and it should prepare the update statement with update of 2 fields only not for all...
You are using ef core 6.x, have you tried the ef core 7?
We didn't tried the ef core 7 and we are middle of ABP 7 upgrade. do you mean after ef 7 the concern will handle automatically for both SQL & Mongo?
But still we had to pass the Entire Update DTO even we update few properties right? any work around for the same or do we need to write the custom method to do so.
-
0
hi
Can you share some code or a project to reproduce?
liming.ma@volosoft.com
-
0
-
0
-
0
hi
We don't familiar with MongoDB, You can create a sample project with ef core.
-
0
hi
We don't familiar with MongoDB, You can create a sample project with ef core.
We will try to provide a sample in two days to continue our discussion.
-
0
Thanks
-
0
Thanks
We are still preparing the sample solutions, will share by tomorrow max
-
0
no problem