EFDataSource Class
An Entity Framework data source.
Namespace: DevExpress.DataAccess.EntityFramework
Assembly: DevExpress.DataAccess.v18.1.dll
Declaration
[XRDesigner("DevExpress.DataAccess.UI.Design.XREFDataSourceDesigner,DevExpress.DataAccess.v18.1.UI", typeof(IDesigner))]
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.EFDataSource.bmp")]
public class EFDataSource :
DataComponentBase,
IListSource,
IListAdapter,
ISupportInitialize,
ITypedList
Related API Members
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the EFDataSource class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.