Answer the question
In order to leave comments, you need to log in
Why doesn't EF Core output all data on JOIN?
I have such query for My SQL
SELECT Project.name AS Project, Test.name AS Test, ROUND(TIME_TO_SEC(timediff(Test.end_time, Test.start_time))/60) AS MIN_WORKING_TIME
FROM Project
INNER JOIN Test ON Test.project_id = Project.id
var projectsAndTests = db.Projects.Join(db.Tests,
p => p.Id,
t => t.Id,
(p, t) => new
{
project = p.Name,
test = t.Name,
MIN_WORKING_TIME = t.EndTime - t.StartTime
});
Scaffold
Answer the question
In order to leave comments, you need to log in
You need to see what SQL query EF Core generates and only then see how they differ.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question