示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaaddoncriteria(ref DataRow row, Vaaddoncriteria entity)
 {
     row.SetField("functionnm", entity.functionnm);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Vaaddoncriteria BuildVaaddoncriteriaFromRow(DataRow row)
        {
            Vaaddoncriteria entity = new Vaaddoncriteria();

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