Activities of "liangshiwei"

Hi,

You can try :

services.AddAbpSwaggerGenWithOAuth(...,options =>
{
    ......
    
    options.CustomSchemaIds(type => type.ToString());
});

ABP uses a naming convention to register DI.

Your repository name is CompanyBRRepository and it should be CompanyBranchRepository

Also, see: https://docs.abp.io/en/abp/latest/Dependency-Injection

Hi,

Try:

public class AppUser : ...
{
  public ExistProfile ExistProfile {get;set}
}

public class ExistProfile : ...
{
   public Guid AppUserId {get;set;}
   public AppUser AppUser {get;set;}
}

MigrationsDbContext

builder.Entity<ExistProfile>(b =>
{
    b.Ignore(x => x.AppUser);
    b.HasOne<IdentityUser>().WithOne().HasForeignKey<ExistProfile>(x => x.AppUserId);
});

DbContext

builder.Entity<ExistProfile>(b =>
{
    b.HasOne(x => x.AppUser).WithOne(x => x.ExistProfile).HasForeignKey<ExistProfile>(x => x.AppUserId);
});

Hi,

Maybe I can check it remotely. shiwei.liang@volosoft.com

Replace by Id as AppUserId does not exists, Replace by Id as MyExistingEntityId does not exists

You should not do this, AppUserId and MyExistingEntityId are foreign key(base entity relationship).

See : https://docs.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api,fluent-api-simple-key,simple-key#fully-defined-relationships

Your entity should be:

One to one relationship

public class AppUser : .....
{
   public Guid MyExistingEntityId {get;set;}
   public MyExistingEntity MyExistingEntity {get;set;}
}

public class MyExistingEntity : ....
{
   public Guid AppUserId {get;set;}
   public AppUser AppUser {get;set;}
}

One to many relationship

public class AppUser : .....
{
   public List<MyExistingEntity> MyExistingEntities {get;set;}
}

public class MyExistingEntity : ....
{
   public Guid AppUserId {get;set;}
   public AppUser AppUser {get;set;}
}

I am available for remote connection, it might be faster to solve this than the way we do actually

Ok, we can. shiwei.liang@volosoft.com

https://support.abp.io/QA/Questions/1424 fixed

Can you try again?

Hi,

You can try:

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    ......
    AsyncHelper.RunSync(async () =>
    {
        using (var scope = context.ServiceProvider.CreateScope())
        {
            await scope.ServiceProvider
                .GetRequiredService<IDataSeeder>()
                .SeedAsync();
        }
    });
}

Try:

Configure<AbpDbContextOptions>(options =>
{
    options.Configure(c =>
    {
        c.UseSqlServer();
        c.DbContextOptions.UseTriggers();
    });
});

Hi,

You can select the create user interface and click save and generate button

Answer

Hi,

I can't see anything error in your logs. can I check it remotely? shiwei.liang@volosoft.com

Showing 5831 to 5840 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 16, 2025, 10:35