- ABP Framework version: 6rc3
- UI type: Blazor
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): mvc
I didn't get any response to my first inquiry, so I'm trying again. I've seen all kinds of questions about this, but I've never seen it asked specifically about a second database. probably the best thing to do is for me to give you my module code. Would you be willing to take a look at this and if so let me know where I can send. Thank you!
2 Answer(s)
-
0
this is my entity configuration
builder.Entity<CommunityAgent>(b => { b.ToTable(DataManagementDbProperties.DbTablePrefix + "CommunityAgents", DataManagementDbProperties.SchemaCommunity); b.ConfigureByConvention(); b.HasKey(x => new { x.IdentityUserId, x.CommunityId }); b.HasOne<Community>() .WithMany() .IsRequired() .HasForeignKey(x => x.CommunityId) .OnDelete(DeleteBehavior.NoAction); b.HasOne<IdentityUser>() .WithMany() .IsRequired() .HasForeignKey(x => x.IdentityUserId) .OnDelete(DeleteBehavior.NoAction); });
-
0
Do you get errors when migrating the database because of fluent API configuration?
Can you explain in details about the problem you are having?