public void UPDCompte_rendu(Compte_rendu compte_rendu) { using (bdd_Daltons_ppe3Entities bdd = new bdd_Daltons_ppe3Entities()) { bdd.UPDCompte_rendu(compte_rendu.id_compte_rendu, compte_rendu.note, compte_rendu.id_technicien, compte_rendu.id_societe); } }
public void DeleteCompte_Rendu(Compte_rendu compte_rendu) { using (bdd_Daltons_ppe3Entities bdd = new bdd_Daltons_ppe3Entities()) { bdd.Configuration.ProxyCreationEnabled = false; bdd.DeleteCompte_Rendu(compte_rendu.id_compte_rendu); } }
public int AddCompte_Rendu(Compte_rendu compte_rendu) { using (bdd_Daltons_ppe3Entities bdd = new bdd_Daltons_ppe3Entities()) { bdd.Configuration.ProxyCreationEnabled = false; bdd.AddCompte_Rendu(compte_rendu.note, compte_rendu.id_technicien, compte_rendu.id_societe); } return(1); }
public IList <Compte_rendu> SearchCompte_rendu() { IList <SearchCompte_Rendu_Result> maListeBDD; using (bdd_Daltons_ppe3Entities bdd = new bdd_Daltons_ppe3Entities()) { maListeBDD = bdd.SearchCompte_Rendu().ToList(); } // Translation vers une liste de matériel IList <Compte_rendu> ListeCompte_rendu = new List <Compte_rendu>(); foreach (SearchCompte_Rendu_Result one in maListeBDD) { Compte_rendu temp = new Compte_rendu(); temp.note = one.note; temp.id_technicien = one.id_technicien; temp.id_societe = one.id_societe; ListeCompte_rendu.Add(temp); } return(ListeCompte_rendu); }