FirebirdConnectionProvider.GetConnectionString(String, String, String, String, FirebirdServerType, String) Method
Returns a connection string used to open a specified Firebird database using provided login credentials.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
server | String | A string that specifies the server’s name |
userId | String | A string that specifies a user name. |
password | String | A string that specifies a password. |
database | String | A string that specifies the database name. |
serverType | DevExpress.Xpo.DB.FirebirdServerType | A string that specifies the server type. |
charset | String | A string that specifies the database’s character set. |
Returns
Type | Description |
---|---|
String | A connection string. |
Remarks
The value returned by this method can be used to initialize a Session’s connection string (for instance, via the Session.ConnectionString or XpoDefault.ConnectionString property).
Note
The string returned by the GetConnectionString method contains an extra parameter that identifies the database type to which a connection should be established, so it’s not fully compatible with the standard connection string format. When a Session receives this connection string, it removes this extra parameter and then passes the valid connection string to the database.