Firebird ADO.NET Provider SDK Documentation - v1.7

FbConnectionStringBuilder Class

Allows handling of the connection strings. See ConnectionString

For a list of all members of this type, see FbConnectionStringBuilder Members.

System.Object
   FirebirdSql.Data.Firebird.FbConnectionStringBuilder

[Visual Basic]
NotInheritable Public Class FbConnectionStringBuilder
[C#]
public sealed class FbConnectionStringBuilder

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

The following example builds a connection string and prints it in the console.

FbConnectionStringBuilder cs = new FbConnectionStringBuilder();

cs.DataSource = "localhost";
cs.UserID     = "SYSDBA";
cs.Password     = "masterkey";
cs.Database     = "nunit_testdb";
cs.Port         = 3050;
cs.Charset     = "UNICODE_FSS";
cs.Pooling     = true;
cs.ConnectionLifeTime = 30;
// To use the embedded server set the ServerType to 1
cs.ServerType = 0;

Console.WriteLine(cs.ToString());
                

Requirements

Namespace: FirebirdSql.Data.Firebird

Assembly: FirebirdSql.Data.Firebird (in FirebirdSql.Data.Firebird.dll)

See Also

FbConnectionStringBuilder Members | FirebirdSql.Data.Firebird Namespace