[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Collapse]Concepts
  [Expand]Application Solution Components
   Client-Side Mobile Application
  [Collapse]Business Model Design
    Business Model Design Basics
    Built-in Business Classes for Most Popular Scenarios
   [Collapse]Business Model Design with Entity Framework
     Use the Entity Framework Data Model
     Relationships Between Entities in Code and UI
     Model First Specifics
     Use Entity Framework with an Existing Database
   [Expand]Business Model Design with XPO
    Non-Persistent Objects
    PropertyChanged Event in Business Classes
   [Expand]Data Types Supported by built-in Editors
    Mapping Complex Types to the Database
   [Expand]Types Info Subsystem
    Connect an XAF Application to a Database Provider
    Data Annotations in Data Model
    Create and Update the Application's Database
  [Expand]Application Model
  [Expand]UI Construction
  [Expand]Extend Functionality
  [Expand]Data Manipulation and Business Logic
  [Expand]Security System
  [Expand]Localization
  [Expand]System Module
  [Expand]Extra Modules
  [Expand]Debugging, Testing and Error Handling
  [Expand]Filtering
  [Expand]Application Life Cycle
 [Expand]Design-Time Features
 [Expand]Deployment
 [Expand]Task-Based Help
  Frequently Asked Questions (FAQ)
 [Expand]API Reference
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
This documentation page describes implementations made in our v17.2 release cycle. To learn about functionality shipping with v18.1, navigate to our updated help file experience at docs.devexpress.com. Learn More

Business Model Design with Entity Framework

This section describes the use of the Entity Framework (EF) data model in XAF.

Note

It is recommended that you first review the Business Model Design topic to learn when and why to choose EF as the data layer in your XAF application.

To learn how to install EF, refer to the Get Entity Framework topic. Entity Framework support in XAF is provided by the DevExpress.ExpressApp.EF.v18.1.dll assembly. The supported version of EF is 6.1.3. Higher versions are currently untested and may cause errors. To install version 6.1.3, run the following command in the Package Manager Console: "PM> Install-Package EntityFramework -Version 6.1.3". If you use the Solution Wizard to create a EF-based XAF solution, then EF is installed automatically by the wizard.

Expanded Concepts

Expanded Task-Based Help

Expanded MSDN Tutorials

Expanded See Also

Is this topic helpful?​​​​​​​