I'm using runtime version 3.5.12.1101, 2-class Adapter, SQL Server.
I have an entity B that is in an inheritance hierarchy (target per entity). It inherits from entity A. I am trying to update entity B using UpdateEntitiesDirectly, passing a RelationPredicateBucket specifying the key fields of the entity so the update is restricted to a single record.
If, in the entity instance I pass to the method, I have only updated fields that are defined in entity B, it works correctly. However, if I also update one or more fields that are inherited from A, it does not work correctly.
Specifically, LLBLGen issues two database updates. The first statement updates the table for A, and that includes the WHERE clause generated from the RelationPredicateBucket. However, the second statement, which updates the table for B, does not include the WHERE clause, so it updates all rows in the table.