public static void Delete(ProduitFacture produitFacture) { using (var transaction = session.BeginTransaction()) { session.Delete(produitFacture); transaction.Commit(); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } ProduitFacture pf = obj as ProduitFacture; if (pf == null) { return(false); } return(this.IdProduitFactures == pf.IdProduitFactures); }