public ConnectionParameters(string server, string database, string user, string password, DbFamily dbFamily)
 {
     Server = server;
     Database = database;
     User = user;
     Password = password;
     DbFamily = dbFamily;
 }
Beispiel #2
0
 public bool Create(Character pOwner, string szName)
 {
     m_dbObj = new DbFamily
     {
         Announce       = "This is a new family.",
         CreationDate   = (uint)UnixTimestamp.Timestamp(),
         Name           = szName,
         LeaderName     = pOwner.Name,
         LeaderIdentity = pOwner.Identity,
         Level          = 0
     };
     return(Save());
 }
Beispiel #3
0
 public bool Create(DbFamily dbFamily)
 {
     m_dbObj = dbFamily;
     return(true);
 }
Beispiel #4
0
 public static void SetConnection(string server, string database, string user, string password, DbFamily dbFamily, string connectionName)
 {
     ConnectionParameters parameters = new ConnectionParameters(server, database, user, password, dbFamily);
     parameters.Name = connectionName;
     SetConnection(parameters);
 }
Beispiel #5
0
 public static void SetConnection(string server, string database, string user, string password, DbFamily dbFamily)
 {
     SetConnection(server, database, user, password, dbFamily, DefaultConnectionName);
 }