コード例 #1
0
 public static void Delete(RapportFacture rapportFacture)
 {
     using (var transaction = session.BeginTransaction())
     {
         session.Delete(rapportFacture);
         transaction.Commit();
     }
 }
コード例 #2
0
 public static void Create(RapportFacture rapportFacture)
 {
     using (var transaction = session.BeginTransaction())
     {
         //session.Save(rapportFacture.Rapport);
         session.Save(rapportFacture);
         transaction.Commit();
     }
 }
コード例 #3
0
        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);
        }