Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromZonereplenishmentcriteria(ref DataRow row, Zonereplenishmentcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("wh_zone", entity.whZone);
     row.SetField("zonerepluserfield", entity.zonerepluserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Zonereplenishmentcriteria BuildZonereplenishmentcriteriaFromRow(DataRow row)
        {
            Zonereplenishmentcriteria entity = new Zonereplenishmentcriteria();

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