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