Uploaded image for project: 'Entity Framework'
  1. Entity Framework
  2. EF-38

Create a ModelValidator to validate the model

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • Public Preview 1
    • Affects Version/s: None
    • None

      There are several checks we need to perform at the end of the model building process to ensure we can deal with the completed model.

      1. Ensure all Element Names are unique within an entity

      2. Ensure that the primary key is mapped to `_id`

      3. Ensure no shadow properties exist on the model

            Assignee:
            damien.guard@mongodb.com Damien Guard
            Reporter:
            damien.guard@mongodb.com Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: