Пример #1
0
 /// <summary>
 /// Enters info to connect to a MySql server
 /// </summary>
 /// <param name="Host"></param>
 /// <param name="Username"></param>
 /// <param name="Password"></param>
 /// <param name="Database"></param>
 public virtual void AddSqlInfo(string Host, string Username, string Password, string Database, int Port)
 {
     ConfigLibrary.Entity.DataBaseEntity data = configuration.Database;
     data.HostName     = Host;
     data.UserName     = Username;
     data.UserPassword = Password;
     data.DataBase     = Database;
     data.Port         = Port;
 }
Пример #2
0
 /// <summary>
 /// Returns MySql info, the calling function must use th 'out' keyword in its signature
 /// example: Someobject.GetSqlInfo(out variable, out varibale2, out variable3, out varibale4)
 /// </summary>
 /// <param name="Host"></param>
 /// <param name="Username"></param>
 /// <param name="Password"></param>
 /// <param name="Database"></param>
 public virtual void GetSqlInfo(out string Host, out string Username, out string Password, out string Database, out int Port)
 {
     ConfigLibrary.Entity.DataBaseEntity data = configuration.Database;
     Host     = data.HostName;
     Username = data.UserName;
     Password = data.UserPassword;
     Database = data.DataBase;
     Port     = data.Port;
 }
Пример #3
0
 /// <summary>
 /// Enters info for the TCP data server.  Not Yet Implemented
 /// </summary>
 /// <param name="HostName">The remote Server host to connect</param>
 /// <param name="Port">The remote port</param>
 public virtual void AddDataInfo(string HostName, int ServerPort)
 {
     ConfigLibrary.Entity.DataBaseEntity data = configuration.Database;
     data.HostName = HostName;
     data.Port     = ServerPort;
 }