Share via


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.

How to: Edit Facet Values (Entity Data Model Tools)

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.

How to: Execute Business Logic During Association Changes

Shows how to validate entities when a relationship changes.

How to: Intercept Data Service Messages (WCF Data Services)

Shows how to add validation to a data service operation.

See Also

Other Resources

Defining Business Logic (Entity Framework)

Interceptors (WCF Data Services)