Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOpencountsshipdate(ref DataRow row, Opencountsshipdate entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("id", entity.id);
     row.SetField("ch_type", entity.chType);
     row.SetField("i_qty", entity.iQty);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Opencountsshipdate BuildOpencountsshipdateFromRow(DataRow row)
        {
            Opencountsshipdate entity = new Opencountsshipdate();

            entity.coNum     = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum     = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.id        = row.IsNull("id") ? 0 : row.Field <int>("id");
            entity.chType    = row.IsNull("ch_type") ? string.Empty : row.Field <string>("ch_type");
            entity.iQty      = row.IsNull("i_qty") ? 0 : row.Field <int>("i_qty");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }