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

Create a ModelValidator to validate the model

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty