New to Telerik ReportingStart a free 30-day trial

Represents an Entity data model to data items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class EntityDataSource : EntityDataSourceBase, IDataSource

Inheritance: objectMarshalByRefObjectComponentDataSourceObjectDataSourceBaseEntityDataSourceBaseEntityDataSource...

Implements: IDataSource

Inherited Members EntityDataSourceBase.EqualsSpecific(EntityDataSourceBase)EntityDataSourceBase.ConnectionStringEntityDataSourceBase.ContextEntityDataSourceBase.ContextMemberObjectDataSourceBase.ParametersDataSource.NameDataSource.DescriptionDataSource.CalculatedFields...

Constructors

Initializes a new instance of the EntityDataSource class.

C#
public EntityDataSource()

Initializes a new instance of the EntityDataSource class.

C#
public EntityDataSource(object context, string contextMember)
Parameters:contextobject

Specifies the context used to connect to data.

contextMemberstring

Specifies the context member used to connect to data.

Initializes a new instance of the EntityDataSource class.

C#
public EntityDataSource(string connectionString, object context, string contextMember)
Parameters:connectionStringstring

Specifies the connection string used to connect to data.

contextobject

Specifies the context used to connect to data.

contextMemberstring

Specifies the context member used to connect to data.

Properties

Gets or sets the context used to connect to data.

C#
[Obsolete("The Telerik.Reporting.EntityDataSource.ObjectContext is now obsolete. Please use Telerik.Reporting.EntityDataSource.Context instead.")]
[Browsable(false)]
public object ObjectContext { get; set; }
Remarks:

The Context property can contain either an instance of an context or the Type of such a context to be created at run time.

Gets or sets the context member used to connect to data.

C#
[Obsolete("The Telerik.Reporting.EntityDataSource.ObjectContextMemeber is now obsolete. Please use Telerik.Reporting.EntityDataSource.ContextMemeber instead.")]
[Browsable(false)]
public string ObjectContextMember { get; set; }
Remarks:

The ContextMember property contains the name of a property or a method of the context to be invoked during data retrieval.