Class
OpenAccessDataSource

Represents an Open Access data model to data items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

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

Inheritance: objectMarshalByRefObjectComponentDataSourceObjectDataSourceBaseOpenAccessDataSource

Implements: IDataSource

Inherited Members ObjectDataSourceBase.ParametersDataSource.NameDataSource.DescriptionDataSource.CalculatedFields

Constructors

OpenAccessDataSource()

Initializes a new instance of the OpenAccessDataSource class.

Declaration

cs-api-definition
public OpenAccessDataSource()

OpenAccessDataSource(object, string)

Initializes a new instance of the OpenAccessDataSource class.

Declaration

cs-api-definition
public OpenAccessDataSource(object objectContext, string objectContextMember)

Parameters

objectContext

object

Specifies the object context used to connect to data.

objectContextMember

string

Specifies the object context member used to connect to data.

OpenAccessDataSource(string, object, string)

Initializes a new instance of the OpenAccessDataSource class.

Declaration

cs-api-definition
public OpenAccessDataSource(string connectionString, object objectContext, string objectContextMember)

Parameters

connectionString

string

Specifies the connection string used to connect to data.

objectContext

object

Specifies the object context used to connect to data.

objectContextMember

string

Specifies the object context member used to connect to data.

OpenAccessDataSource(string, string, object, string)

Initializes a new instance of the OpenAccessDataSource class.

Declaration

cs-api-definition
public OpenAccessDataSource(string providerName, string connectionString, object objectContext, string objectContextMember)

Parameters

providerName

string

Specifies the managed provider name used to connect to data.

connectionString

string

Specifies the connection string used to connect to data.

objectContext

object

Specifies the object context used to connect to data.

objectContextMember

string

Specifies the object 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.

ObjectContext

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

Declaration

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

Property Value

object

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.

ObjectContextMember

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

Declaration

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

Property Value

string

Remarks

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

ProviderName

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

Declaration

cs-api-definition
[TypeConverter("Telerik.Reporting.Data.Design.DataProviderNameConverter, Telerik.Reporting.Design, Version=19.3.26.121, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public string ProviderName { get; set; }

Property Value

string

Remarks

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