/// <summary>
 /// Deprecated Method for adding a new object to the dados EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTodados(dado dado)
 {
     base.AddObject("dados", dado);
 }
 /// <summary>
 /// Create a new dado object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 public static dado Createdado(global::System.Decimal id)
 {
     dado dado = new dado();
     dado.id = id;
     return dado;
 }
        public string RecebeDados(estDados datax, string key)
        {
            if (key != "3kl4j3lk5n3lk3j43kl4j34n3,m4n34k34hj3l4h34nm3,.n43")
            {
                throw new Exception("Chave inválida");
            }

            BotWoWEntities b = EntityContextBot.GetContext;
            dado d = new dado();

            d.xp = datax.xp;
            d.xp_needed = datax.xp_needed;
            d.name = datax.name;

            b.dados.AddObject(d);

            b.SaveChanges();

            return "Sucesso";
        }