Back to Devexpress

EFConnectionParameters.Source Property

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

latest2.7 KB
Original Source

EFConnectionParameters.Source Property

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

Declaration

csharp
public Type Source { get; set; }
vb
Public Property Source As Type

Property Value

TypeDescription
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

csharp
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

vb
efds.ConnectionParameters.ConnectionStringName = "NorthwindEntitiesConnString"
efds.ConnectionParameters.Source = GetType(Models.NorthwindEntities)
Return efds

See Also

EFConnectionParameters Class

EFConnectionParameters Members

DevExpress.DataAccess.EntityFramework Namespace