首页 新闻 赞助 找找看

关于linq的一个问题。

0
悬赏园豆:50 [已关闭问题]

            using (DataClasses1DataContext context = new DataClasses1DataContext())
            {
                Console.WriteLine(context.GetTable<Card>().Count());
            }

 

日志会是:

SELECT COUNT(*) AS [value]
FROM [dbo].[Card] AS [t0]

SELECT COUNT(*) AS [value]
FROM [dbo].[Card] AS [t0]

 

为什么sql server profiler会生成两条sql?

asp.net.asp.net的主页 asp.net.asp.net | 初学一级 | 园豆:10
提问于:2009-05-12 11:01
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册