/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlsfsetupslistcriteria(ref DataRow row, Glsfsetupslistcriteria entity) { row.SetField("conoSelect", entity.conoSelect); row.SetField("conoFrom", entity.conoFrom); row.SetField("conoTo", entity.conoTo); row.SetField("userfield", entity.userfield); }
public static Glsfsetupslistcriteria BuildGlsfsetupslistcriteriaFromRow(DataRow row) { Glsfsetupslistcriteria entity = new Glsfsetupslistcriteria(); entity.conoSelect = row.IsNull("conoSelect") ? string.Empty : row.Field <string>("conoSelect"); entity.conoFrom = row.IsNull("conoFrom") ? 0 : row.Field <int>("conoFrom"); entity.conoTo = row.IsNull("conoTo") ? 0 : row.Field <int>("conoTo"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }