Back to Devexpress

EFDataSource Class

corelibraries-devexpress-dot-dataaccess-dot-entityframework.md

latest3.6 KB
Original Source

EFDataSource Class

An Entity Framework data source.

Namespace : DevExpress.DataAccess.EntityFramework

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
[ToolboxBitmap(typeof(EFDataSource), "EFDataSource.bmp")]
public class EFDataSource :
    DataComponentBase,
    IListSource,
    IListAdapter2,
    IListAdapter,
    ISupportInitialize,
    ITypedList,
    IDynamicLookupSettingsDataProvider,
    IDataConnectionParametersService
vb
<ToolboxBitmap(GetType(EFDataSource), "EFDataSource.bmp")>
Public Class EFDataSource
    Inherits DataComponentBase
    Implements IListSource,
               IListAdapter2,
               IListAdapter,
               ISupportInitialize,
               ITypedList,
               IDynamicLookupSettingsDataProvider,
               IDataConnectionParametersService

The following members return EFDataSource objects:

Remarks

EFDataSource supports the following Entity Framework versions:

  • Entity Framework 5.0 and higher.
  • Entity Framework Core 1.0 and higher.

Note that the Entity Framework context class passed to an EFConnectionParameters.Source should be public.

Note

To connect to different database types using EFDataSource , you need to install a corresponding data provider. For instance, install the System.Data.SQLite.EF6 data provider to connect to an SQLite database using Entity Framework 6.

Implements

IDataComponent

Inheritance

Object MarshalByRefObject Component DataComponentBase EFDataSource DashboardEFDataSource

See Also

How to Create the Data Access Library Data Sources at Runtime

EFDataSource Members

EFDataConnection

Bind a Report to an Entity Framework Data Source

Bind a Report to an Entity Framework Stored Procedure

Entity Framework Data Source in ASP.NET Web Forms

IEFContextProvider

DevExpress.DataAccess.EntityFramework Namespace