Entity configuration management with DDD bounded contexts
问题 I'm trying to implement multiple DDD bounded contexts as outlined here. This is an example context: I have an entity type configuration file for each entity with the appropriate FluentAPI mappings (reverse engineered using EF tooling). These configuration files also include the relationship configurations. e.g.: UserMap.cs // Relationships this.HasOptional(t => t.SecurityProfile) .WithMany(t => t.Users) .HasForeignKey(t => t.SecurityProfileCode); SecurityProfile and DomainPermission are not