public static Loadexcptusagettcriteria BuildLoadexcptusagettcriteriaFromRow(DataRow row) { Loadexcptusagettcriteria entity = new Loadexcptusagettcriteria(); entity.prod = row.IsNull("prod") ? string.Empty : row.Field <string>("prod"); entity.whse = row.IsNull("whse") ? string.Empty : row.Field <string>("whse"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLoadexcptusagettcriteria(ref DataRow row, Loadexcptusagettcriteria entity) { row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("userfield", entity.userfield); }