示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromValaborlinecriteria(ref DataRow row, Valaborlinecriteria entity)
 {
     row.SetField("oper2", entity.oper2);
     row.SetField("workdate", entity.workdate);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("vaeslrowid", entity.vaeslrowid.ToByteArray());
 }
示例#2
0
        public static Valaborlinecriteria BuildValaborlinecriteriaFromRow(DataRow row)
        {
            Valaborlinecriteria entity = new Valaborlinecriteria();

            entity.oper2      = row.IsNull("oper2") ? string.Empty : row.Field <string>("oper2");
            entity.workdate   = row.Field <DateTime?>("workdate");
            entity.vano       = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf      = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno      = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.vaeslrowid = row.Field <byte[]>("vaeslrowid").ToStringEncoded();
            return(entity);
        }