public TabJogos ConsultarJogosPorNome(string NomeDoJogo) { using (Smart_GamesEntities3 ctx = new Smart_GamesEntities3()) { return(ctx.TabJogos.Where(c => c.NomeDoJogo == NomeDoJogo).FirstOrDefault()); } }
public void finalizarCompra(TabJogos objU) { using (Smart_GamesEntities3 ctx = new Smart_GamesEntities3()) { ctx.TabJogos.Add(objU); ctx.SaveChanges(); } }