Hi,
We are migrating our O/R Mapper from 2.6 to 3.5.
After the generated files are made succesfully we get serveral errors in our code.
private static IEntityRelation GetFKRelationByFieldname(CommonEntityBase manySideEntity, string relatedEnityPropertyName)
{
List<IEntityRelation> relations = manySideEntity.GetAllRelations();
foreach (IEntityRelation relation in relations)
{
if (relation.MappedFieldName == relatedEnityPropertyName)
{
return relation;
}
}
return null;
}
The GetAllRelations() method is now protected instead of public so we can't enumerate through the collection of relations.
Can you tell me what the recommended way is to do this?
Thanks,
Sander.