/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcamuinvvalchgcriteria(ref DataRow row, Icamuinvvalchgcriteria entity) { row.SetField("fromwhse", entity.fromwhse); row.SetField("towhse", entity.towhse); row.SetField("fromrank", entity.fromrank); row.SetField("torank", entity.torank); row.SetField("fromadj", entity.fromadj); row.SetField("toadj", entity.toadj); row.SetField("userfield", entity.userfield); }
public static Icamuinvvalchgcriteria BuildIcamuinvvalchgcriteriaFromRow(DataRow row) { Icamuinvvalchgcriteria entity = new Icamuinvvalchgcriteria(); entity.fromwhse = row.IsNull("fromwhse") ? string.Empty : row.Field <string>("fromwhse"); entity.towhse = row.IsNull("towhse") ? string.Empty : row.Field <string>("towhse"); entity.fromrank = row.IsNull("fromrank") ? string.Empty : row.Field <string>("fromrank"); entity.torank = row.IsNull("torank") ? string.Empty : row.Field <string>("torank"); entity.fromadj = row.IsNull("fromadj") ? string.Empty : row.Field <string>("fromadj"); entity.toadj = row.IsNull("toadj") ? string.Empty : row.Field <string>("toadj"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }