Class DbConnectionInfo
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
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
ConnectionString
The connection string
public string ConnectionString { get; set; }
Property Value
DbServerType
The type of the RDBMs
public DbServerType DbServerType { get; set; }
Property Value
Name
A unique name among all connections
public string Name { get; set; }
Property Value
Schema
The DbSchema associated to this connection
[JsonIgnore]
public DbSchema Schema { get; }
Property Value
Tag
A user defined information object.
[JsonIgnore]
public object Tag { get; set; }
Property Value
Methods
GetProviderInvariantName()
Returns the provider invariant name.
public string GetProviderInvariantName()
Returns
GetSqlProvider()
Returns the SqlProvider of this connection string. If the provider is not registered with SqlProviders an exception is thrown.
public SqlProvider GetSqlProvider()
Returns
ToString()
Returns the Name if not empty, otherwise the base.ToString()
public override string ToString()