Hi jbb,
I hae something very similar:
IRelationPredicateBucket bucket = new RelationPredicateBucket(EventProductFields.ProductId == entity.ProductId);
work.AddDeleteEntitiesDirectlyCall("ProductVsCategoryEntity", bucket);
However when I attempt to run this I recieve the following error:
An exception was caught during the execution of an action query: The multi-part identifier "Online Store.dbo.EventProduct.ProductId" could not be bound.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
EventProduct Inherits from Product. Product has the m:n relationship with Category.
Any ideas? :S
Cheers