Table of Contents

Class DbConnectionInfo

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

Information about a connection to a database.

public class DbConnectionInfo
Inheritance
DbConnectionInfo
Inherited Members
Extension Methods

Constructors

DbConnectionInfo()

Constructor

public DbConnectionInfo()

Properties

AutoCreateGenerators

True to autocreate generators/sequencers

public bool AutoCreateGenerators { get; set; }

Property Value

bool

CommandTimeoutSeconds

The time in seconds to wait for an SELECT/INSERT/UPDATE/DELETE/CREATE TABLE ect. command to execute. Zero means the default timeout.

public int CommandTimeoutSeconds { get; set; }

Property Value

int

ConnectionString

The connection string

public string ConnectionString { get; set; }

Property Value

string

DbServerType

The type of the RDBMs

public DbServerType DbServerType { get; set; }

Property Value

DbServerType

Name

A unique name among all connections

public string Name { get; set; }

Property Value

string

Schema

The DbSchema associated to this connection

[JsonIgnore]
public DbSchema Schema { get; }

Property Value

DbSchema

Tag

A user defined information object.

[JsonIgnore]
public object Tag { get; set; }

Property Value

object

Methods

GetProviderInvariantName()

Returns the provider invariant name.

public string GetProviderInvariantName()

Returns

string

GetSqlProvider()

Returns the SqlProvider of this connection string. If the provider is not registered with SqlProviders an exception is thrown.

public SqlProvider GetSqlProvider()

Returns

SqlProvider

ToString()

Returns the Name if not empty, otherwise the base.ToString()

public override string ToString()

Returns

string