Class
EntityDataSource

Represents an Entity data model to data items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public class EntityDataSource : ObjectDataSourceBase, IDataSource

Inheritance: objectMarshalByRefObjectComponentDataSourceObjectDataSourceBaseEntityDataSource

Implements: IDataSource

Inherited Members ObjectDataSourceBase.ParametersDataSource.NameDataSource.DescriptionDataSource.CalculatedFields

Constructors

EntityDataSource()

Initializes a new instance of the EntityDataSource class.

Declaration

cs-api-definition
public EntityDataSource()

EntityDataSource(object, string)

Initializes a new instance of the EntityDataSource class.

Declaration

cs-api-definition
public EntityDataSource(object context, string contextMember)

Parameters

context

object

Specifies the context used to connect to data.

contextMember

string

Specifies the context member used to connect to data.

EntityDataSource(string, object, string)

Initializes a new instance of the EntityDataSource class.

Declaration

cs-api-definition
public EntityDataSource(string connectionString, object context, string contextMember)

Parameters

connectionString

string

Specifies the connection string used to connect to data.

context

object

Specifies the context used to connect to data.

contextMember

string

Specifies the context member used to connect to data.

Properties

ConnectionString

Gets or sets the connection string used to connect to data.

Declaration

cs-api-definition
public string ConnectionString { get; set; }

Property Value

string

Remarks

The ConnectionString property contains either a valid connection string or the name of a ConnectionStringSettings in the application configuration file.

Context

Gets or sets the context used to connect to data.

Declaration

cs-api-definition
public object Context { get; set; }

Property Value

object

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.

ContextMember

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

Declaration

cs-api-definition
public string ContextMember { get; set; }

Property Value

string

Remarks

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

ObjectContext

Gets or sets the context used to connect to data.

Declaration

cs-api-definition
[Obsolete("The Telerik.Reporting.EntityDataSource.ObjectContext is now obsolete. Please use Telerik.Reporting.EntityDataSource.Context instead.")]
[Browsable(false)]
public object ObjectContext { get; set; }

Property Value

object

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.

ObjectContextMember

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

Declaration

cs-api-definition
[Obsolete("The Telerik.Reporting.EntityDataSource.ObjectContextMemeber is now obsolete. Please use Telerik.Reporting.EntityDataSource.ContextMemeber instead.")]
[Browsable(false)]
public string ObjectContextMember { get; set; }

Property Value

string

Remarks

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