I read this article on using LINQ
s for doing Joins
. I was wondering how much benefit this would be aside from writing a stored procedure that would join the tables? Would it cause any kind of performance issues using joins with LINQ
?
UPDATE:
So using this as an example:
var employeeInfo =
from employee in employees
join addInfo in additionalInfo on employee.ID equals addInfo.CategoryID into allInfo
select new { CategoryName = category.Name, Products = allInfo};
Would this simple join
benefit me as apposed to a stored procedure
? I know depending on the size of the tables and number of tables you may want to join
could make a big difference on when to use LINQ
vs store procedure
. What would be a good "rule of thumb" on the number of tables and sizes one should use for LINQ
joins and when performing LINQ
joins becomes too much of a performance hit?