New to Telerik ReportingStart a free 30-day trial

Represents an Open Access data model to data items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class OpenAccessDataSource : ObjectDataSourceBase, IDataSource

Inheritance: objectMarshalByRefObjectComponentDataSourceObjectDataSourceBaseOpenAccessDataSource...

Implements: IDataSource

Inherited Members ObjectDataSourceBase.ParametersDataSource.NameDataSource.DescriptionDataSource.CalculatedFields

Constructors

Initializes a new instance of the OpenAccessDataSource class.

C#
public OpenAccessDataSource()

Initializes a new instance of the OpenAccessDataSource class.

C#
public OpenAccessDataSource(object objectContext, string objectContextMember)
Parameters:objectContextobject

Specifies the object context used to connect to data.

objectContextMemberstring

Specifies the object context member used to connect to data.

Initializes a new instance of the OpenAccessDataSource class.

C#
public OpenAccessDataSource(string connectionString, object objectContext, string objectContextMember)
Parameters:connectionStringstring

Specifies the connection string used to connect to data.

objectContextobject

Specifies the object context used to connect to data.

objectContextMemberstring

Specifies the object context member used to connect to data.

Initializes a new instance of the OpenAccessDataSource class.

C#
public OpenAccessDataSource(string providerName, string connectionString, object objectContext, string objectContextMember)
Parameters:providerNamestring

Specifies the managed provider name used to connect to data.

connectionStringstring

Specifies the connection string used to connect to data.

objectContextobject

Specifies the object context used to connect to data.

objectContextMemberstring

Specifies the object context member used to connect to data.

Properties

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

C#
public string ConnectionString { get; set; }
Remarks:

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

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

C#
public object ObjectContext { get; set; }
Remarks:

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

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

C#
public string ObjectContextMember { get; set; }
Remarks:

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

Gets or sets the managed provider name used to connect to data.

C#
[TypeConverter("Telerik.Reporting.Data.Design.DataProviderNameConverter, Telerik.Reporting.Design, Version=20.1.26.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public string ProviderName { get; set; }
Remarks:

If the ProviderName property is set to null (Nothing in Visual Basic) or an empty string, the default provider is System.Data.SqlClient.