Exemple #1
0
 public void UpdateCharacter(CharacterData data)
 {
     try
     {
         lock (DataAccess.DatabaseAccess)
             using (var comm = DataAccess.DatabaseAccess.CreateCommand(String.Format("UPDATE `character` SET {0} WHERE `Coid` = {1} AND `AccountId` = {2}", data.GetUpdateString(), data.Coid, data.AccountId)))
                 comm.ExecuteNonQuery();
     }
     catch (Exception e)
     {
         Logger.WriteLog("Exception in UpdateCharacter! Exception: {0}", LogType.Error, e);
     }
 }