I inherited some projects in which apparently the VS application is using old EDMX. I don't recall having such a hard time with queries in the past, especially with figuring out parameters ..
As I step through the code I see various IQueryable<T>
statements such as
IQueryable<BreakDomainModel> breakDomainModels = breakFactoryService.ReadBreakData();
Everyone seems to be so hidden that troubleshooting it becomes difficult.
Example of part of the SQL
CASE WHEN ([Extent2].[BreakId] IS NOT NULL) THEN [Extent3].[Name] ELSE @p__linq__0 END AS [C6],
CASE WHEN ([Extent2].[BreakId] IS NOT NULL) THEN CAST( [Extent2].[DateCreated] AS datetime2) END AS [C7],
[Extent1].[ExceptionType] AS [ExceptionType],
[Extent1].[LinkId] AS [LinkId],
CASE WHEN ([Extent2].[BreakId] IS NOT NULL) THEN [Extent2].[Age] ELSE @p__linq__1 END AS [C8]
How can I step through the code and actually get the values of @p__linq__0
etc.. ?
I can provide more code if needed, but simply F11 and using watches is just not helping.