Activities of "liangshiwei"

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.

Hi,

You can try use ReplaceDbContext.

See, you should use IIdentityProDbContext:

https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore/EntityFrameworkCore/MyProjectNameDbContext.cs

Hi,

By default, we do not output SQL logs.

You can try to change the log level to the warning:

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.."
})

...
Showing 4741 to 4750 of 6016 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56