We are in the process of upgrading from 2.6 to 3.1 version of LLBLGenPro.
We have an entity Department with 1-n relationship with a targetperentity Employee.
Employee has subtype of Manager
Employee has another subtype of BoardMember
Our entity names are different but setup is identical to above hierarchy.
After the code generation the fetchcollection methods are failing with mult part identifier errors.
Basically query is complaining about unknown fields from Manager tables. This is because From clause doesn't include Manager/BoardMember tables
Following is the code from 2.6 version
var members = new EntityCollection<EmployeeEntity>();
var filter = new RelationPredicateBucket(EmployeeFields.DepartmentId== 1234);
filter.Relations.AddRange(InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo(EntityType.EmployeeEntity.ToString(), false).RelationsToHierarchyRoot);
adapter.FetchEntityCollection(members , filter);
The same query now throwing multi part identifier errors