Class AppConfiguration_Connection
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class contains the configuration parameters for a connection
public class AppConfiguration_Connection
- Inheritance
-
AppConfiguration_Connection
- Inherited Members
- Extension Methods
Properties
ConnectionType
Returns the current type of connection
public AppConfiguration_Connection.AppConfigurationConnectionType ConnectionType { get; }
Property Value
CustomConnectionString
A custom connection string to use. All other parameters can be left empty.
public string CustomConnectionString { get; set; }
Property Value
Database
The name of the database to connect to. Leave empty for JET databases.
public string Database { get; set; }
Property Value
DatabasePath
The full path to the MDB file for JET databases.
public string DatabasePath { get; set; }
Property Value
MDWfilePath
The full path to an optional MDW security file for JET databases.
public string MDWfilePath { get; set; }
Property Value
Password
The password for making the connection. Use empty for integrated security.
public string Password { get; set; }
Property Value
Server
The server to connect to. Leave empty for JET databases.
public string Server { get; set; }
Property Value
UserName
The username for making the connection. Use empty for integrated security.
public string UserName { get; set; }
Property Value
Methods
CreateConnection()
To get a database connection for the current parameters
public PolarConnection CreateConnection()
Returns
ToString()
To print out the parameters of the connection.
public override string ToString()
Returns
- string
A string with the relevant parameters