![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The ConnectInfo class specifies the server, database and username/password used to connect to a database. More...
Public Types | |
| enum | TYPE { NONE , LOCAL , REMOTE , AZURE } |
| Defines the generic connection location More... | |
Public Member Functions | |
| ConnectInfo (string strServer=null, string strDb="DNN", string strUn=null, string strPw=null, TYPE location=TYPE.NONE) | |
| The constructor. More... | |
| bool | Compare (ConnectInfo ci) |
| Compare another ConnectInfo with this one. More... | |
| override string | ToString () |
| Returns a string representation of the connection. More... | |
| string | ToString (string strAzure) |
| Returns a string representation of the connection. More... | |
| string | ToInfoString () |
| Returns a string representation of the connection information. More... | |
| string | ToKeyValuePairs () |
| Returns the connection information as a set of key-value pairs. More... | |
Static Public Member Functions | |
| static ConnectInfo | ParseKeyValuePairs (string strKeyValPairs) |
| Parses a key-value pair string containing the connection information and returns a ConnectInfo. More... | |
Properties | |
| TYPE | Location [getset] |
| Get/set the generic location type. More... | |
| string | Server [getset] |
| Get/set the server. More... | |
| string | Database [getset] |
| Get/set the database. More... | |
| string | Username [get] |
| Returns the username. More... | |
| string | Password [get] |
| Returns the password. More... | |
The ConnectInfo class specifies the server, database and username/password used to connect to a database.
Definition at line 13 of file ConnectInfo.cs.
Defines the generic connection location
| Enumerator | |
|---|---|
| NONE | Specifies no location. |
| LOCAL | Specifies a local connection. |
| REMOTE | Specifies a remote connection. |
| AZURE | Specifies a connection to Azure. |
Definition at line 24 of file ConnectInfo.cs.
| MyCaffe.basecode.ConnectInfo.ConnectInfo | ( | string | strServer = null, |
| string | strDb = "DNN", |
||
| string | strUn = null, |
||
| string | strPw = null, |
||
| TYPE | location = TYPE.NONE |
||
| ) |
The constructor.
| strServer | Specifies the server (default = null) |
| strDb | Specifies the database (default = 'DNN') |
| strUn | Specifies the username (default = null) |
| strPw | Specifies the password (default = null) |
| location | Specifies a generic location type. |
Definition at line 52 of file ConnectInfo.cs.
| bool MyCaffe.basecode.ConnectInfo.Compare | ( | ConnectInfo | ci | ) |
Compare another ConnectInfo with this one.
| ci | Specifies the other ConnectInfo to compare to. |
Definition at line 66 of file ConnectInfo.cs.
|
static |
Parses a key-value pair string containing the connection information and returns a ConnectInfo.
| strKeyValPairs | Specifies the key-value pairs string. |
Definition at line 191 of file ConnectInfo.cs.
| string MyCaffe.basecode.ConnectInfo.ToInfoString | ( | ) |
Returns a string representation of the connection information.
Definition at line 161 of file ConnectInfo.cs.
| string MyCaffe.basecode.ConnectInfo.ToKeyValuePairs | ( | ) |
Returns the connection information as a set of key-value pairs.
Definition at line 173 of file ConnectInfo.cs.
| override string MyCaffe.basecode.ConnectInfo.ToString | ( | ) |
Returns a string representation of the connection.
Definition at line 90 of file ConnectInfo.cs.
| string MyCaffe.basecode.ConnectInfo.ToString | ( | string | strAzure | ) |
Returns a string representation of the connection.
| strAzure | Specifies the Azure server. |
Definition at line 106 of file ConnectInfo.cs.
|
getset |
Get/set the database.
Definition at line 135 of file ConnectInfo.cs.
|
getset |
Get/set the generic location type.
Definition at line 117 of file ConnectInfo.cs.
|
get |
Returns the password.
Definition at line 152 of file ConnectInfo.cs.
|
getset |
Get/set the server.
Definition at line 126 of file ConnectInfo.cs.
|
get |
Returns the username.
Definition at line 144 of file ConnectInfo.cs.