public static Glsfgetdesigncriteria BuildGlsfgetdesigncriteriaFromRow(DataRow row) { Glsfgetdesigncriteria entity = new Glsfgetdesigncriteria(); entity.designName = row.IsNull("designName") ? string.Empty : row.Field <string>("designName"); entity.recordCountLimit = row.IsNull("recordCountLimit") ? 0 : row.Field <int>("recordCountLimit"); 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 UpdateRowFromGlsfgetdesigncriteria(ref DataRow row, Glsfgetdesigncriteria entity) { row.SetField("designName", entity.designName); row.SetField("recordCountLimit", entity.recordCountLimit); row.SetField("userfield", entity.userfield); }