Based on the information you provided I am guessing that you are using our visual designer and have specified to generate a fluent mapping. Also I guess you have a reference to another class and have also a shared id field that is shared with this reference. If this is the case, then there is a problem that the metadata used in our runtime system is calculated wrongly, which results in these wrong sql statements. We are already aware of this issue and will address it as soon as possible.
In the meantime, you can work around this issue by switching from fluent code generation to xml code generation.
Please accept my apologies for the inconvenience this might cause.
I hope this information is helpful for you.
Do come back if you need further assistance.
All the best,
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.