Open roji opened 1 month ago
The metadata support is already covered by #34627. Once that's done, this issue tracks doing the proper adjustments to GenerateComplexPropertyShaperExpression.
Adjustments will also be needed for property handling of ExecuteUpdate when a complex type is referenced as the property to change, and there's a view mapping; see test Update_complex_type_type_with_view_mapping.
The following code:
... throws:
This is because calling GetViewOrTableMappings() on the complex type returns only the table mapping - this seems like a metadata issue.
Once this fixed, GenerateComplexPropertyShaperExpression would need to be fixed to support this scenario as well.