public static Getmultiloclistresults BuildGetmultiloclistresultsFromRow(DataRow row) { Getmultiloclistresults entity = new Getmultiloclistresults(); entity.binLoc = row.IsNull("binLoc") ? string.Empty : row.Field <string>("binLoc"); entity.isDuplicate = row.Field <bool>("isDuplicate"); 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 UpdateRowFromGetmultiloclistresults(ref DataRow row, Getmultiloclistresults entity) { row.SetField("binLoc", entity.binLoc); row.SetField("isDuplicate", entity.isDuplicate); row.SetField("userfield", entity.userfield); }