public static void Delete(RapportFacture rapportFacture) { using (var transaction = session.BeginTransaction()) { session.Delete(rapportFacture); transaction.Commit(); } }
public static void Create(RapportFacture rapportFacture) { using (var transaction = session.BeginTransaction()) { //session.Save(rapportFacture.Rapport); session.Save(rapportFacture); transaction.Commit(); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } RapportFacture r = obj as RapportFacture; if (r == null) { return(false); } return(this.IdRapportFacture == r.IdRapportFacture); }