[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Data.DbDataSource

DbDataSource Class

DB data source - allows to connect through custom database providers.

Namespace: GrapeCity.ActiveReports.Data
Assembly: MESCIUS.ActiveReports.dll
Syntax
public class DbDataSource : IDbConnectionProperties

Constructors

Name Description
DbDataSource(DataProviderInfo)

Creates new DbDataSource out of DataProviderInfo

DbDataSource(DbProviderFactory)

Creates new DbDataSource out of DbProviderFactory

DbDataSource(string)

Initializes a new instance of the DbDataSource class based on the specified provider name.

Fields

Name Description
DefaultTimeout

The number of seconds to wait for a connection to open, before cancelling an attempt and generate an error.

Properties

Name Description
CommandText

Specifies a valid SQL statement used to retrieve records from the data source.

CommandTimeout

Sets or returns the amount of time to wait while executing a command before terminating the attempt and generating an error.

ConnectionString

Specifies the string used to open a connection to the data source.

CredentialsMode

Get or sets the value indicating whether the credentials dialog should be called or not.

Factory

Gets data source's DbProviderFactory.

ParamQuery
ProviderName

Returns provider's invariant name

SQL

Specifies a valid SQL statement used to retrieve records from the data source.

Methods

Name Description
CreateConnection()
NeedsToSetCredentials(string, string)
OnConnectionStringChanging(string)

Allows to edit the connection string when its current value is about to change.

SetCredentials(string, string)

Sets credentials.

XmlRead(XmlNode)
XmlWrite(XmlDocument, XmlElement)

Extension Methods