___This is blocking at least one P1 QA test.___
If we determine that the new behavior is preferred, I will update the QA test to support the new behavior.
1. Create new C# project and add EDMX.
2. Choose empty model.
3. Add entity and save.
4. Right click on "Id" property and remove the primary key.
5. Save
Expected:
Model error because the entity has no primary key
Actual:
No error. (The error is produced at build only.)
___UPDATE___
Another validation-related issue. Add two unmapped entities (e.g. "Car", "Person") to an existing db-first model. On save, it (correctly) shows 2 errors, one for each unmapped entity. But on _build_ it shows only 1 error:
"Error 3027: No mapping specified for the following EntitySet/AssociationSet - Cars, People"
If we determine that the new behavior is preferred, I will update the QA test to support the new behavior.
1. Create new C# project and add EDMX.
2. Choose empty model.
3. Add entity and save.
4. Right click on "Id" property and remove the primary key.
5. Save
Expected:
Model error because the entity has no primary key
Actual:
No error. (The error is produced at build only.)
___UPDATE___
Another validation-related issue. Add two unmapped entities (e.g. "Car", "Person") to an existing db-first model. On save, it (correctly) shows 2 errors, one for each unmapped entity. But on _build_ it shows only 1 error:
"Error 3027: No mapping specified for the following EntitySet/AssociationSet - Cars, People"