ObjectContext는 다음 동안NULL의 dbcontext에서 처리 내가 여기</p> <pre><code>from e in Employees where e.DesignationID !=558 select e </code></pre> <p><code>DesignationID</code>가 널 (NULL) 필드이 간단한 LINQ 쿼리가
SELECT
[Extent1].[EmployeeID] AS [EmployeeID],
[Extent1].[EmployeeCode] AS [EmployeeCode],
[Extent1].[EmployeeName] AS [EmployeeName],
[Extent1].[DesignationID] AS [DesignationID]
FROM [dbo].[setupEmployees] AS [Extent1]
WHERE 558 <> [Extent1].[DesignationID]
:
이 objectcontext
에서 쿼리에 번역을 dbcontext
의 동일한 검색어는 다음 언어로 번역되었습니다.
SELECT
[Extent1].[EmployeeID] AS [EmployeeID],
[Extent1].[EmployeeCode] AS [EmployeeCode],
[Extent1].[EmployeeName] AS [EmployeeName],
[Extent1].[DesignationID] AS [DesignationID]
FROM [dbo].[setupEmployees] AS [Extent1]
WHERE NOT ((558 = [Extent1].[DesignationID]) AND ([Extent1].[DesignationID] IS NOT NULL))
왜 objectcontext
은 dbcontext
과 다르게 NULL을 처리합니까?