If I correctly understand your scenario, you have one-to-many association where on the source side you have the Addresses class which is a base class and in the target side you want to have a navigation collection property from this base type. Unfortunately you cannot create a navigation collection from the base type and use it as you can use a polymorphic references
, this is not supported by Telerik Data Access.
Still for Flat Inheritance there is a workaround which you can use, but you can use it only to get the related addresses from the database and you will not be able to add a new address in the navigation collection. Let's assume that you have an association between two tables - Addresses and Customers and in the Addresses table there is a Foreign Key column CustomerId. For Flat Inheritance you can get all entities with the context.GetAll<T>() method. So in your case you can create an extension method in the EntitiesModel class, which returns all addresses related to one Customer:
I hope that helps. If any other questions arise or you want to achieve something different, do not hesitate to contact us again.
IEnumerable<Addresses> GetAddresses(Customer customer)
.GetAll<Addresses>().Where(adr => adr.CustomerId == customer.Id);
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map