ASP.NET MVC2 Linq Where Clause using StartsWith

前端 未结 2 440
无人及你
无人及你 2021-01-26 00:10

I have a few filters on my view, the first one is list by first name, last name and company name when one of these options are selected the user can then select a, b, c ... x, y

2条回答
  •  [愿得一人]
    2021-01-26 01:11

    I have managed to resolve the problem. If you look at the query the line

    LEFT OUTER JOIN [Speakers] AS t1 ON ([t1].[Id] = [t0].[Id])
    

    should read

    LEFT OUTER JOIN [Speakers] AS t1 ON ([t1].[Id] = [t0].[SpeakerId])
    

    Not quite sure why this is happening though, can anyone see how to correct this problem?

提交回复
热议问题