/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOmorderundropcriteria(ref DataRow row, Omorderundropcriteria entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("hold_undrop_type", entity.holdUndropType); row.SetField("userfield", entity.userfield); }
public static Omorderundropcriteria BuildOmorderundropcriteriaFromRow(DataRow row) { Omorderundropcriteria entity = new Omorderundropcriteria(); 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.holdUndropType = row.IsNull("hold_undrop_type") ? 0 : row.Field <int>("hold_undrop_type"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }