Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOrderlotcutcriteria(ref DataRow row, Orderlotcutcriteria entity)
 {
     row.SetField("ordertype", entity.ordertype);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("ordseqno", entity.ordseqno);
     row.SetField("statustype", entity.statustype);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Orderlotcutcriteria BuildOrderlotcutcriteriaFromRow(DataRow row)
        {
            Orderlotcutcriteria entity = new Orderlotcutcriteria();

            entity.ordertype  = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.orderno    = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf   = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.lineno     = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.ordseqno   = row.IsNull("ordseqno") ? 0 : row.Field <int>("ordseqno");
            entity.statustype = row.IsNull("statustype") ? string.Empty : row.Field <string>("statustype");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }