public static Glsfrenumberdesigncriteria BuildGlsfrenumberdesigncriteriaFromRow(DataRow row) { Glsfrenumberdesigncriteria entity = new Glsfrenumberdesigncriteria(); entity.designname = row.IsNull("designname") ? string.Empty : row.Field <string>("designname"); entity.designdesc = row.IsNull("designdesc") ? string.Empty : row.Field <string>("designdesc"); 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 UpdateRowFromGlsfrenumberdesigncriteria(ref DataRow row, Glsfrenumberdesigncriteria entity) { row.SetField("designname", entity.designname); row.SetField("designdesc", entity.designdesc); row.SetField("userfield", entity.userfield); }