Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCrtserialcoresttcriteria(ref DataRow row, Crtserialcoresttcriteria entity)
 {
     row.SetField("transty", entity.transty);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("customparam", entity.customparam);
 }
Ejemplo n.º 2
0
        public static Crtserialcoresttcriteria BuildCrtserialcoresttcriteriaFromRow(DataRow row)
        {
            Crtserialcoresttcriteria entity = new Crtserialcoresttcriteria();

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