Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

How to apply join for models in view using entity framwork

$
0
0

Hi All,

In my MVC application I am using Controller with views using Entity Framework.

So the result I got below code in my view

@Html.DisplaylFor(model => model.updatedby)

Here the issue is that model => model.updatedby gives the User_Id and here I need name of that user.

My question is how can I put a join with the tblUser in view bt using User_Id? or do I need to follow another approach?

As I found that my application doesn't have complex logic so I choose  Controller with views using Entity Framework.

Please suggest


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>