Hi Liang,
I am already doing it, I'll keep the thread active with errors that I'll run into on the way ;) Btw it'd be good to have something to look into while we do this. May I suggest you that from your next iteration of microservice template, you could include a microservice service that uses mongo as well? Right now we have product-service that uses ef core, why not have one more service that uses mongo. This would be highly helpful.
helooo anybody there?
looks like this error is there in the product-service thats generated by default within the microservice pro template.
Could you please look into it? just run the product service swagger page through the tye dashboard or even try running the project separately and see. you'd see the error.
i followed the docs, and for those info that were missing i followed the product service project.
please look into this asap.
Thank you
hi,
we haven't started testing this with a domain name yet. this breaks while locally testing the application.
Hi, any updates please.
Sure, will pass this on to the team.
Thank you :)
Hi, but first the app should run in localhost right? I am sorry if I didn't understand you correctly.
I would like to add, how I had to write controller code and DI application service and write:
public class ActionName (Guid id) { return IApplicationService.UpdateEntity(id); }
This was something that was done for each action. While usually writing for an app, we don't edit the controller right? is there something that has to be taken care of at this point?
Hi,
the microservice template has gotten better by leaps and bounds since the last time I raised this issue. Now we can add a service to a microservice solution by using:
abp new OrderService -t microservice-service-pro
This creates a solution with efcore.
Do we have a similar command, say:
abp new ProductService -t microservice-service-pro -d mongodb
That allows us to add a service that uses mongodb for storing its domain entities? This service will be using the efcore backing given by the microservice for identity, admin, saas etc.
The above command is only for reference, it doesn't generate a project with mongodb.
Now to the question.
Is there a command to straight away generate a microservice service that uses mongodb? If not, is there any references that we can check to see how to implement one? Could you please let us know how to achieve this?
Thank you :)
hi @liangshiwei,
I'll share the repo with you. I'll explain the issue via mail or remote; which ever is comfortable for you. Either ways, pls lemme know.
Ty :)
HI albert,
Thank you for the reply. Could you please take a look at this link: https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.dbcontextoptionsbuilder.usequerytrackingbehavior?view=efcore-3.1
An excerpt from the link:
"Disabling change tracking is useful for read-only scenarios because it avoids the overhead of setting up change tracking for each entity instance. You should not disable change tracking if you want to manipulate entity instances and persist those changes to the database using SaveChanges()."
Without disabling tracking is there a better way to solve this issue? For example, any sample in abp that allows us to change the entity state and then update?
Thank you