MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.

I'm not curious

Data Layer Validation with Entity Framework 4.1+

Course Summary

Entity Framework 4.1 brought us Code First and the DbContext. The DbContext has built in data layer validation features. In this course, you'll learn the basics of those features, then move on to learning how to customize the validation behavior. In the f

  • +

    Course Syllabus

    ● Data Layer Validation with Entity Framework DbContext
        ◦ Introduction
        ◦ Objectives
        ◦ Validation Logic in Your Application
        ◦ Where Does Validation Fit in Entity Framework?
        ◦ Validating Against .NET 4 Validation Attributes
        ◦ Type Validation with .NET 4 IValidateableObject
        ◦ Adding Custom Data Layer Validation (A Sneak Peek)
        ◦ Triggering Validation from the DbContext
        ◦ Inspecting Results of Different Validation Methods
        ◦ Combining Property-Level and Type-Level Validation Rules
        ◦ Validations vs. Code First Mapping Configuration
        ◦ Summary
        ◦ Resources
    ● Customizing Entity Framework Data Layer Validation
        ◦ Introduction
        ◦ Objectives
        ◦ Review Data Layer Validation Basics
        ◦ Opportunities for Customization
        ◦ Overriding ValidateEntity
        ◦ Refactoring ValidateEntity Logic
        ◦ ValidateEntity Workflows
        ◦ Using ShouldValidateEntity to Specify Which Entities to Validate
        ◦ Turning off Automatic Validation during SaveChanges
        ◦ What Does and Doesn't Belong in ValidateEntity
        ◦ The items IDictionary Parameter of ValidateEntity
        ◦ Summary
        ◦ Resources
    ● Integrating Entity Framework Validation with MVC and WCF Data Services
        ◦ Introduction
        ◦ Objectives
        ◦ MVC's Validation Features
        ◦ Review Domain and Model Validation Rules
        ◦ Creating a Simple MVC 3 App with the Model
        ◦ Client Side Validation and Data Annotations
        ◦ MVC Server-Side Validation and Data Annotations
        ◦ Forcing MVC UI to Display Data Layer Validation Issues
        ◦ MVC and Fluent API Validation Configurations
        ◦ WCF Data Services Exception Handling of DbEntityValidationExceptions
        ◦ Overriding HandleException
        ◦ Summary
        ◦ Resources


Course Fee:
USD 29

Course Type:


Course Status:



1 - 4 hours / week

This course is listed under Open Source , Development & Implementations and Operating Systems Community

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top