This code updates a single record, changing one field value - well, at least that's what it should do. However it doesn't change the value. Have tried this code in different ways, but without any success. It runs and doesn't report any errors.
Wondered if anyone can see any problem with it before I ditch trying to use LLBL to do it and create a DAL method?
Thanks,
Alan
RelationPredicateBucket bucket = new RelationPredicateBucket();
bucket.PredicateExpression.Add(ErcHeritageMediumFields.ResourceId == ID);
ErcHeritageMediumEntity media1 = new ErcHeritageMediumEntity(ID);
media1.Display = Request.Form["ctl00$MainContent$Related$ddImageStatus"]; //either Y or N
DataAccessAdapter adapter2 = new DataAccessAdapter();
adapter2.UpdateEntitiesDirectly(media1, bucket);