Refactor to api connections. Update Checker.
This commit is contained in:
@@ -4,6 +4,9 @@ using System.Collections.Generic;
|
||||
|
||||
namespace PWAPPv2.Source.Database
|
||||
{
|
||||
/// <summary>
|
||||
/// Class <c>DatabaseConnection</c> creates and maintains a connection to and OpenDental MySqlDatabase.
|
||||
/// </summary>
|
||||
class DatabaseConnection
|
||||
{
|
||||
|
||||
@@ -18,6 +21,12 @@ namespace PWAPPv2.Source.Database
|
||||
Connection = new MySqlConnection(SqlString);
|
||||
}
|
||||
|
||||
public DatabaseConnection(Config.Configuration config)
|
||||
{
|
||||
SqlString = "server=" + config.Get("ODhost") + ";Uid=" + config.Get("ODuser") + ";database=" + config.Get("ODdatabase") + ";Pwd=" + config.Get("ODpassword");
|
||||
Connection = new MySqlConnection(SqlString);
|
||||
}
|
||||
|
||||
public void Connect()
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user