- ABP Framework version: v4.0
- DB provider: EF Core
Hi,
I've added an entity to my context which has a navigation property to tenants table. Migration file's been created with success. But when I try to run DbMigrator app, it throws an exception like this:
And my entity's config is like this:
gl.HasOne(g => g.Tenant).WithMany().HasForeignKey(g => g.TenantId);
How can I solve this problem?
Thanks.
PS: Related with this post
5 Answer(s)
-
0
hi
Can you share the full code to reproduce this problem?
-
0
Hi,
I think the problem is clear and easy to reproduce. Also I've linked a related problem. I cannot share the source code. It's a corporate project and contains sensitive information.
Thanks.
-
0
hi, this maybe a issue. someone else also reported the same situation. I'll check it
-
0
I created an issue: https://github.com/abpframework/abp/issues/8019
-
0
You can find why the problem occurs and the solution here.
So I am closing this ticket. You can re-open and add comment if you want.