/// <summary> /// Create a new levelup object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="id_sessao">Initial value of the id_sessao property.</param> /// <param name="dt">Initial value of the dt property.</param> /// <param name="lvl">Initial value of the lvl property.</param> public static levelup Createlevelup(global::System.Decimal id, global::System.Decimal id_sessao, global::System.DateTime dt, global::System.Decimal lvl) { levelup levelup = new levelup(); levelup.id = id; levelup.id_sessao = id_sessao; levelup.dt = dt; levelup.lvl = lvl; return levelup; }
/// <summary> /// Deprecated Method for adding a new object to the levelups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTolevelups(levelup levelup) { base.AddObject("levelups", levelup); }
public void IncluirLevelUp(estSessao s, estLevelUp u, string key) { if (key != "3kl4j3lk5n3lk3j43kl4j34n3,m4n34k34hj3l4h34nm3,.n43") { throw new Exception("Chave inválida"); } BotWoWEntities b = EntityContextBot.GetContext; levelup l = new levelup(); l.dt = u.data; l.lvl = u.lvl; l.id_sessao = s.id; b.levelups.AddObject(l); b.SaveChanges(); }