Possible Duplicate:
Entity Framework Validation
Is there any good and flexible validation framework for EntityFramework ?
Entity Framework provides a great variety of validation features that can feed through to a user interface for client-side validation or be used for server-side validation.
When using code first, you can specify validations using Data annotation or fluent API configurations.
Additional and more complex validations can be specified in code and will work whether your model hails from code first, model first or database first.
Here are some links for more details: Configuring Properties and Types with the Fluent API and Entity Framework Validation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With