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