Click here to Skip to main content
15,894,720 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii friends..

I have 3 tier architecture project using entity frame work in asp.net.

here i want to retrieve a single record from table using edmx file in my three tier architecture ..
Posted
Comments
Sandeep Mewara 26-Sep-12 2:46am    
And the issue is? Where are you stuck?

1 solution

first make object of Entity Model

C#
DatabaseEntities dbe = new DatabaseEntities();

Try this query for any particular record..

C#
var selectRecord = (from item in dbe.TableName
                   where item.id == [matching prameter]
                   select item).SigleOrDefault();


Add this Section of Codes in DAL(Data Access Layer).
 
Share this answer
 
v3

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