Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Edited Issue: EFDesigner (v12): Model does not validate on save. [1083]

$
0
0
___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"

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>