public void InsertIntoVotes(int idJoueur, int idJeux, int cote) { Vote vote = new Vote(); vote.idjoueur = idJoueur; vote.idjeu = idJeux; vote.cote = cote; DB.Votes.InsertOnSubmit(vote); if (AutoCommit) DB.SubmitChanges(); }
private void attach_Votes(Vote entity) { this.SendPropertyChanging(); entity.utilisateur = this; }
private void detach_Votes(Vote entity) { this.SendPropertyChanging(); entity.utilisateur = null; }
partial void DeleteVote(Vote instance);
partial void UpdateVote(Vote instance);
partial void InsertVote(Vote instance);
private void detach_Votes(Vote entity) { this.SendPropertyChanging(); entity.Jeux = null; }
private void attach_Votes(Vote entity) { this.SendPropertyChanging(); entity.Jeux = this; }