Exemplo n.º 1
0
        public void DeleteDigitalSignature(DigitalSignature digital, DbTransaction tran)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("ID", digital.ID);
            processor.ExecuteNonQuery("delete from DigitalSignature where id=@ID", tran, dic);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            DigitalSignature obj1 = obj as DigitalSignature;

            if (this.SN == obj1.SN && this.TN == obj1.TN && this.UserName == obj1.UserName && this.SignTime == obj1.SignTime)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 3
0
 public bool InsertDigitalSignature(DigitalSignature ds, DbTransaction tran)
 {
     return(processor.Insert <DigitalSignature>(ds, tran));
 }
Exemplo n.º 4
0
 public bool InsertDigitalSignature(DigitalSignature ds)
 {
     return(InsertDigitalSignature(ds, null));
 }