Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi,
I am using Telerik open Access,I have three different data models like
UserEntitiesModel->account_details
ProfileEntitiesModel->biographic_details
ContactsEntitiesModel->contact_groups

I have three different tables in different datamodels.I want to load the data from all the tables,I used joins and wrote the lambda expression,but it is throwing an exception that "InvalidOperationException unhandled by user code".can u tell me how to retrieve the the data from different tables in diferent datamodels.
Posted
Updated 16-Jul-12 2:16am
v4
Comments
Unareshraju 16-Jul-12 8:27am    
let me did you connect to database through the LINQ?
please tell me............
charan1431 17-Jul-12 0:54am    
I have different entity models in my project.I want to retrieve the data from the tables from different entity models.I wrote the lambda expression to retrieve the data from different entity models but it is throwing Invalid Operation Exception.

1 solution

Hi charan,
As i understood.

these three tables have a at least one common column.
depending on them we can use a join operation.
i was got same exception in previous in LINQ but i was took a common column for all table then i used join query after that i worked fine.

please see the my be syntax problem in join command .........
 
Share this answer
 
Comments
Unareshraju 17-Jul-12 2:07am    
please see the url:
http://www.databasejournal.com/features/mysql/article.php/3835506/Fetching-Data-from-Multiple-Tables-using-Joins.htm
charan1431 17-Jul-12 2:36am    
may i know one thing,U are also retrieving the data from tables with different entity models or same entity model?
Unareshraju 17-Jul-12 2:42am    
Same Enitymodel..charan
charan1431 17-Jul-12 2:55am    
My query is working fine if i give all tables in one entity model,I am facing problem with different entities models

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900