corelibraries-devexpress-dot-dataaccess-dot-entityframework-dot-efconnectionparameters.md
Specifies the type of an Entity Framework database context used to connect to data.
Namespace : DevExpress.DataAccess.EntityFramework
Assembly : DevExpress.DataAccess.v25.2.dll
NuGet Package : DevExpress.DataAccess
public Type Source { get; set; }
Public Property Source As Type
| Type | Description |
|---|---|
| Type |
A Type object specifying the type of a database context.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Source property.
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.
reporting-web-forms-report-designer-add-data-sources/CS/WebApplication1/Default.aspx.cs#L65
efds.ConnectionParameters.ConnectionStringName = "NorthwindEntitiesConnString";
efds.ConnectionParameters.Source = typeof(Models.NorthwindEntities);
return efds;
reporting-web-forms-report-designer-add-data-sources/VB/WebApplication1/Default.aspx.vb#L59
efds.ConnectionParameters.ConnectionStringName = "NorthwindEntitiesConnString"
efds.ConnectionParameters.Source = GetType(Models.NorthwindEntities)
Return efds
See Also