Activities of "liangshiwei"

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

Sorry, but I want say, please share the API Host application logs, the logs you provided is not useful.

https://github.com/abpframework/abp/pull/9213

  1. As you have asked to add following in BlazorHostModule

You need to install these packages : )

  1. You have asked to create this function below in HostMenuContributor
private void ConfigureMenu(ServiceConfigurationContext context)
{
    Configure&lt;AbpNavigationOptions&gt;(options =>
    {
        options.MenuContributors.Add(new ProductModuleHostMenuContributor(context.Services.GetConfiguration()));
    });
}
  1. When we add dependencies in Identity module , the for following dependencies it throw error

Same with 1

For now, try:

public override void PostConfigureServices(ServiceConfigurationContext context)
{
    Configure<RazorPagesOptions>(options =>
    {
        options.Conventions.RemoveAll(x =>
        {
            if (x == null)
            {
                return false;
            }
            var type = x.GetType();

            if (type.Name != "PageApplicationModelConvention")
            {
                return false;
            }

            return type.GetField("_path", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(x)
                .As<string>() == "/SettingManagement/Index";
        });
    });
}
Showing 5111 to 5120 of 5968 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11