Click here to Skip to main content
15,921,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I m beginner in edmx..if u have details then plz provide with example..I have problem during calling entities

C#
using (CompanyEmployeesEntities ctx = new CompanyEmployeesEntities())
{
}

i m unable to call this function..plz help


Thank u.
Posted
Updated 2-May-14 3:45am
v2

Follow the link having good example:

Link 1

also you can directly use:

EXAMPLE

C#
using (var ctx = new SchoolDBEntities())
        {
            //Execute stored procedure as a function
            var courseList = ctx.GetCoursesByStudentId(1).ToList<Course>();


            foreach (Course cs in courseList)
                Console.WriteLine("Course Name: {0}",cs.CourseName);
        }
 
Share this answer
 
v2
The internet is your friend

http://www.entityframeworktutorial.net/stored-procedure-in-entity-framework.aspx
 
Share this answer
 

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