hi
Can you try to clear your local Redis?
Your issue is related to your local environment, not the code.
EF Core 有一些action 你可以自定义它们来为所有实体增加一些配置
请参考 https://abp.io/docs/latest/framework/data/entity-framework-core#abpdbcontextoptions
反射判断属性类型并配置它们。
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/AbpDbContext.cs#L121-L140
Configure<AbpDbContextOptions>(options =>
{
options.ConfigureDefaultConvention((dbContext, builder) =>
{
// This action is called for ConfigureConventions method of all DbContexts.
});
options.ConfigureConventions<YourDbContext>((dbContext, builder) =>
{
// This action is called for ConfigureConventions method of specific DbContext.
});
options.ConfigureDefaultOnModelCreating((dbContext, builder) =>
{
// This action is called for OnModelCreating method of all DbContexts.
});
options.ConfigureOnModelCreating<YourDbContext>((dbContext, builder) =>
{
// This action is called for OnModelCreating method of specific DbContext.
});
});
hi
I just created a new template project from ABP Studio.
hi
Can you share a project to reproduce this problem?
liming.ma@volosoft.com
I will download and debug it.
Thanks.
hi
can you provide me with a up and down method for the host migration and then similarly a up and down method for the tenant migration?
You can generate it by dotnet ef migrations command, then you can revert the changes in your git.
https://abp.io/docs/9.2/release-info/migration-guides/abp-9-2 https://abp.io/docs/9.2/release-info/migration-guides
Thanks.
hi
Here is my test result. I can't reproduce your problem.
https://streamable.com/b5p2l4