Hi,
The second way is the best.
The other thing is that the OnLocationChanged method seems to only be called when going to the home page, but not when going to any other page.
Sorry , I didn't get it.
Also , can you share the steps? it may a problem, we should fix it if so.
Hi,
You can try:
(await GetDbContextAsync()).Users
Hi,
We used distributed events: https://docs.abp.io/en/abp/latest/Distributed-Event-Bus
You can check it: https://github.com/abpframework/abp/blob/dev/modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Users/BlogUserSynchronizer.cs
Hi
how can you get it? or product name?
https://github.com/abpframework/abp/blob/dev/modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Users/BlogUser.cs
This is what we did, we have redundant user data in the blog module and synchronize data using distributed events.
If you just want to get the product, you can try:
public class BlogProductController : //....
{
private readonly IProductionAppService _productAppService; // dynamic Http Api proxy
public BlogProductController(//....)
public async Task<Product> GetProductByName(string productName)
{
// will send a http request to product module.
return await _productAppService.GetProductByName(productName)
}
}
Hi,
You can get data from the module via Http API, ABP provided dynamic Http Api proxy system. you can call it like a local method.
Or you can directly reference the data layer(.MongoDB
or .EntityframeworkCore
) project, so you can inject the repository to query data
I understand that abp's pre-built events do not support this cascade deletion , right ?
Yes.
Hi,
My understanding may not be correct, please let me know if yes.
You can bind the click event of the button, just an example:
...
$("#exportButton").click(function(){
window.location.href = "/api.."
})
...