Complex types (and complex collections on EF10+) are not yet supported by the provider, but they are not rejected by MongoModelValidator. A model that uses them builds successfully and then fails or misbehaves at runtime.
Proposed change
Reject any model containing a complex property during model validation, with a clear NotSupportedException naming the entity type and property. Remove the check once complex type support is implemented.
Notes
- Applies to EF8, EF9, EF10 and EF11.
- Add unit tests to MongoModelValidatorTests.