A newer version of this page is available. Switch to the current version.

EFDataSource Class

An Entity Framework data source.

Namespace: DevExpress.DataAccess.EntityFramework

Assembly: DevExpress.DataAccess.v19.1.dll

Declaration

[XRDesigner("DevExpress.DataAccess.UI.Design.XREFDataSourceDesigner,DevExpress.DataAccess.v19.1.UI, Version=19.1.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672", typeof(IDesigner))]
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.EFDataSource.bmp")]
[ToolboxSvgImage("DevExpress.DataAccess.Images.EFDataSource.svg,DevExpress.DataAccess.v19.1, Version=19.1.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public class EFDataSource :
    DataComponentBase,
    IListSource,
    IListAdapter2,
    IListAdapter,
    ISupportInitialize,
    ITypedList

The following members accept/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

Inheritance

Object
MarshalByRefObject
Component
DevExpress.DataAccess.DataComponentBase
See Also