public ConnectionParameters(string server, string database, string user, string password, DbFamily dbFamily) { Server = server; Database = database; User = user; Password = password; DbFamily = dbFamily; }
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()); }
public bool Create(DbFamily dbFamily) { m_dbObj = dbFamily; return(true); }
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); }
public static void SetConnection(string server, string database, string user, string password, DbFamily dbFamily) { SetConnection(server, database, user, password, dbFamily, DefaultConnectionName); }