public void Delete(SalesInvoiceDetail SalesInvoiceDetail)
 {
     using (DbManager db = new DbManager())
     {
         Accessor.Query.Delete(db, SalesInvoiceDetail);
     }
 }
 public void Save(SalesInvoiceDetail SalesInvoiceDetail)
 {
     using (DbManager db = new DbManager())
     {
         if (SalesInvoiceDetail.RecordNo != 0)
         {
             Accessor.Query.Update(db, SalesInvoiceDetail);
         }
         else
         {
             Accessor.Query.Insert(db, SalesInvoiceDetail);
         }
     }
 }