Validating Data Defined in Conceptual Models
When you use a conceptual model, you can define what kind of data is valid in the language that matches your domain. You can define valid data in the model, or you can add validation to operations that you perform on an entity or data service.
The following topics show how to add validation to Entity Framework and WCF Data Services applications.
Topic |
Description |
---|---|
How to: Add and Edit Referential Constraints (Entity Data Model Tools) |
Shows how to restrict the ends of associations to valid entities. |
Shows how to create data type constraints for property values. |
|
How to: Execute Business Logic During Scalar Property Changes (Entity Framework) |
Shows how to validate properties when they change. |
How to: Execute Business Logic When Saving Changes (Entity Framework) |
Shows how to validate entities before saving to the database. |
Shows how to validate entities when a relationship changes. |
|
Shows how to add validation to a data service operation. |