You can execute a stored procedure using EF, which selects records from a database from two or more tables using an inner join and a left outer join.
my point is to avoid the method of doing joins in EF or LINQ, with which I have a lot of problems with it.
therefore, if I create this procedure, can I call it with parameters from user input, I can assign the result to the .ToList() method, and then add the result to asp: repeatater .DataSource .
I know this may be a strange question, but I want to do this for many reasons, firstly, use EF, because I feel more comfortable. secondly, get rid of using unions in EF. thirdly, I read somewhere that using a stored procedure will improve query performance when a query is called frequently.
if anyone can help me answer these questions with an example, I would appreciate it.
source share