//
// Style using the properties in the MimerConnectionStringBuilder class.
//
MimerConnectionStringBuilder csb1 = new MimerConnectionStringBuilder();
csb1.Database = "TESTDB";
csb1.Protocol = "tcp";
csb1.Node = "ExServer";
csb1.UserId = "TEST";
csb1.Password = "Testpass";
csb1.PersistSecurityInfo = false;
//
// Same connection string using keywords and Add.
//
MimerConnectionStringBuilder csb2 = new MimerConnectionStringBuilder();
csb2.Add("Database", "TESTDB");
csb2.Add("Protocol", "tcp");
csb2.Add("Node", "ExServer");
csb2.Add("User Id", "TEST");
csb2.Add("Password", "Testpass");
csb2.Add("Persist Security Info", false);
//
// Finally using the indexer built into the class.
//
MimerConnectionStringBuilder csb3 = new MimerConnectionStringBuilder();
csb3["Database"] = "TESTDB";
csb3["Protocol"] = "tcp";
csb3["Node"] = "ExServer";
csb3["UserId"] = "TEST";
csb3["Password"] = "Testpass";
csb3["Persist Security Info"] = false;
//
// Here we use the connection string with the MimerConnection class.
//
MimerConnection connection = new MimerConnection();
connection.ConnectionString = csb1.ToString();
connection.Open();