/// <summary> /// Create a new loot 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="id_Item">Initial value of the id_Item property.</param> /// <param name="qtd">Initial value of the qtd property.</param> public static loot Createloot(global::System.Decimal id, global::System.Decimal id_sessao, global::System.DateTime dt, global::System.Decimal id_Item, global::System.Decimal qtd) { loot loot = new loot(); loot.id = id; loot.id_sessao = id_sessao; loot.dt = dt; loot.id_Item = id_Item; loot.qtd = qtd; return loot; }
/// <summary> /// Deprecated Method for adding a new object to the loots EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToloots(loot loot) { base.AddObject("loots", loot); }
public void IncluirLoot(estSessao s, estLoot l, string key) { if (key != "3kl4j3lk5n3lk3j43kl4j34n3,m4n34k34hj3l4h34nm3,.n43") { throw new Exception("Chave inválida"); } BotWoWEntities b = EntityContextBot.GetContext; loot l1 = new loot(); l1.dt = l.data; l1.id_Item = l.idItem; l1.qtd = l.qtd; l1.id_sessao = s.id; b.loots.AddObject(l1); b.SaveChanges(); }