Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromValinehistcriteria(ref DataRow row, Valinehistcriteria entity)
 {
     row.SetField("functionnm", entity.functionnm);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("lineno", entity.lineno);
 }
Esempio n. 2
0
        public static Valinehistcriteria BuildValinehistcriteriaFromRow(DataRow row)
        {
            Valinehistcriteria entity = new Valinehistcriteria();

            entity.functionnm = row.IsNull("functionnm") ? string.Empty : row.Field <string>("functionnm");
            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.lineno     = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }