Relative Content

Tag Archive for entity-framework-coredomain-driven-design.net-8.0

ValueObject/Entity Used in multiple other entities

I can’t figure out how to configure ef core to handle an ValueObject that needs to be persisted and used in multiple entities. I am trying to adhere to DDD. I have a ValueObject called GradingPeriod. Its a ValueObject because its determined by the Date Range and the Organization. However I can’t figure out how to persist it to the DB and also use it in multiple other entities that need to use it. Currently I have it ownedby the organization as they will be the controller of when grading periods begin and end. I need to be able to use it in things like a IEP for start and end grading periods and also in Goals or Objectives that have a grading period assigned to them.