public IQueryable CompanyList()
{
IQueryable result = null;
result = from o in Context.Company
.Select
(
o => new { o.CodeName ,o.CodeValue}
)
select o;
return result;
}
解析後:
{SELECT
1 AS [C1],
[Extent1].[CodeName] AS [CodeName],
[Extent1].[CodeValue] AS [CodeValue]
FROM (
SELECT
[Company].[Id] AS [CodeTreeId],
[Company].[CodeName] AS [CodeName],
[Company].[CodeValue] AS [CodeValue],
[Company].[Sort] AS [Sort],
FROM [dbo].[Company] AS [Company]) AS [Extent1]}
沒有留言:
張貼留言