public int Update(TnfChangeTransaction tnfChangeTransaction)
 {
     return(Update(new object[]
     {
         tnfChangeTransaction.Oid,
         tnfChangeTransaction.Name,
         tnfChangeTransaction.CreationTime.ToUniversalTime(),
         tnfChangeTransaction.Creator,
         tnfChangeTransaction.Remark
     }));
 }
 public void Add(TnfChangeTransaction tnfChangeTransaction)
 {
     Add(new object[]
     {
         tnfChangeTransaction.Oid,
         tnfChangeTransaction.Name,
         tnfChangeTransaction.CreationTime.ToUniversalTime(),
         tnfChangeTransaction.Creator,
         tnfChangeTransaction.Remark
     });
 }
        private static TnfChangeTransaction ReadObject(IDataRecord reader)
        {
            var tnfChangeTransaction = new TnfChangeTransaction();

            tnfChangeTransaction.Oid          = reader["oid"].FromDbString();
            tnfChangeTransaction.Name         = reader["name"].FromDbString();
            tnfChangeTransaction.CreationTime = (DateTime)reader["creation_time"].ToDateTime();
            tnfChangeTransaction.Creator      = reader["creator"].FromDbString();
            tnfChangeTransaction.Remark       = reader["remark"].FromDbString();

            return(tnfChangeTransaction);
        }