public static Slvendcdlookupcriteria BuildSlvendcdlookupcriteriaFromRow(DataRow row) { Slvendcdlookupcriteria entity = new Slvendcdlookupcriteria(); entity.imptype = row.IsNull("imptype") ? string.Empty : row.Field <string>("imptype"); entity.vendcd = row.IsNull("vendcd") ? string.Empty : row.Field <string>("vendcd"); 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 UpdateRowFromSlvendcdlookupcriteria(ref DataRow row, Slvendcdlookupcriteria entity) { row.SetField("imptype", entity.imptype); row.SetField("vendcd", entity.vendcd); row.SetField("userfield", entity.userfield); }