[]
DB data source - allows to connect through custom database providers.
[TypeConverter("GrapeCity.ActiveReports.Design.ArDesigner.TypeEditors.DataSourceTypeConverter, MESCIUS.ActiveReports.Design.Win, Version=20.1.2.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff")]
public class DbDataSource : IDbConnectionProperties
| 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. |
| Name | Description |
|---|---|
| DefaultTimeout | The number of seconds to wait for a connection to open, before cancelling an attempt and generate an error. |
| 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 | Gets the parameterized query string, equivalent to CommandText. |
| ProviderName | Returns provider's invariant name |
| SQL | Specifies a valid SQL statement used to retrieve records from the data source. |
| Name | Description |
|---|---|
| CreateConnection() | Creates and opens a new database connection using the current connection string. |
| NeedsToSetCredentials(string, string) | Determines whether credentials need to be set based on the provided user name and password. |
| OnConnectionStringChanging(string) | Allows to edit the connection string when its current value is about to change. |
| SetCredentials(string, string) | Returns a connection string with the specified credentials applied. |
| ToString() | Returns a string that represents the current object. |
| XmlRead(XmlNode) | Deserializes this data source from the specified XML node. |
| XmlWrite(XmlDocument, XmlElement) | Serializes this data source to an XML element and appends it to the specified node. |