禁用Linq to SQL上的表别名

时间:2016-12-19 22:45:45

标签: c# sql-server linq

当我使用Linq to SQL时,生成的SQL使用了很多别名,难以阅读和诊断。

SELECT [t4].[ServerID], [t4].[Name], [t4].[URL], [t4].[IsProduction]
FROM [dbo].[OperatorTeams] AS [t0]    
INNER JOIN [dbo].[TeamsOrganizationsACL] AS [t1] ON [t0].[TeamID] = [t1].[TeamId]    
INNER JOIN [dbo].[Servers] AS [t4] ON [t4].[ServerID] = [t2].[ServerID]
WHERE ([t3].[ServerLevelAccess] <> @p0) AND ([t3].[IsActive] = @p1) AND ([t0].[OperatorID] = @p2)

有没有办法禁用表别名?

0 个答案:

没有答案