public List<data>GetData()
{
return (
from ud in dbcontext.userdetails
join td in dbcontext.taskdetails
on new
{
uid = ud.uid ,
}
equals new
{
uid = td.uid.Value ,
}
select new data
{
name = td.name,
amount = td.amount
}
).ToList();
}
No comments:
Post a Comment