Click here to Skip to main content
15,171,993 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

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

1 solution

first make object of Entity Model

DatabaseEntities dbe = new DatabaseEntities();

Try this query for any particular record..

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

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

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