Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
First table
VB
Myid
Uid
Start_Date
Last_login
Lastwall_send
Lastmatch_found
Score
Name



second Table

VB
Myid
Uid
Fid
Subject
Message
Star_Date
Read_message
Read_Dat




i want to all the message i want name from firsttable using fid whhich is uid in 1st table


in short i want to all the message from message table(2nd) of a user with the name of his friend and name is stored in 1st table
Posted

1 solution

You need to use join operation here
like :
var messages = (from tab1 in Context.FirstTable
join tab2 in Context.SecondTable
on tab1.Primarykey equals tab2.Foreign key
select tab2.Message).ToList();

try like this.
Please post back your queries if any.
Thanks
:)
 
Share this answer
 

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