Exemplo n.º 1
0
 public void InsertCharacter(CharacterData data)
 {
     try
     {
         lock (DataAccess.DatabaseAccess)
             using (var comm = DataAccess.DatabaseAccess.CreateCommand(String.Format("INSERT INTO `character` ({0}) VALUES ({1})", CharacterData.GetQueryString(), data.GetInsertString())))
                 comm.ExecuteNonQuery();
     }
     catch (Exception e)
     {
         Logger.WriteLog("Exception in InsertCharacter! Exception: {0}", LogType.Error, e);
     }
 }