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

How to fetch user information using Entity Framwork

$
0
0

Hi All,

A ready made web application has been assigned to me by my TL. The application is based on entity framework for data manipulation.

After removing some configuration error now It's working fine, like the user logs in successfully.

Here is a table in sql database named UserDetails.

Now I need to make a module for user through which user can update his/her profile. For that I go to in the applications entities section. and found a.cs file here where a UserDataContext is defined.

See the second point UserInfo. But when I make a new object of the userinfo class it doesn't show all fields which are in database. It only shows few one like userid, username etc. but not user's postal_address, user's mobileno etc. see the image below.

where as the sql tables having many more fields... see the below image

Should I need to  map  again entity framework to access all the fields in database?

Please help


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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