entity framework - DDD, EF and Referential Integrity -


ok have roots defined. entities inside root allowed references other entities inside same root, not outside. there can have identity or related entity. great.

but, i'm using ef5 , navigation properties getting in way. want define navigation properties entities inside aggregate. how can apply referential integrity related entities in different aggregates? option add fks manually using migrations?

and again, but... going cause bit of problem because want able have readonlyrepositories fetching aggregated data on place. don't want cqrs there of leap there feel. stuck needing second bounded context new set (or maybe derived set) of entities navigation properties defined? can write queries pull data more 1 root?

needing referential integrity indicates deeper issue. why need entity identifier exist in both tables? being held consistent way? , why isn't modeled explicitly? these questions not important answer them. realize using other technology on same db schema (and proper indexes) many of problems go away. knows, might doing cqrs @ point in time.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -