Click here to Skip to main content
15,069,297 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear All

I am new in LINQ this is my LINQ query for the execution of it it takes a long time
if someone can optimize my query i.e is helps me a lot.

var userdetail = new List<UserDetail>();

userdetail = (from student in studentDetails
                              join ud in _Klasscontext.UserDetail
                              on student.StudentUserId equals ud.UserId
                              select ud).ToList();


I want to optimize my code.

What I have tried:

I want to optimize my code.
Posted
Updated 5-Mar-20 2:06am
Comments
Maciej Los 3-Mar-20 4:55am
   
In what aspect do you want to optimize your code? The efficient of query depends on many factors, such as connection speed, database indexing, etc.

1 solution

   

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