我正在使用 linqtotwitter 开发一个 Windows 8 Metro 应用程序。
我需要在我的日志文件中跟踪我的 linq 查询,但我搜索并没有找到 hox 我可以这样做。我读到的所有内容都是关于 linq to sql 的,有数据库,我没有数据库。我通过 linqtotwitter 查询 Twitter API 来获取信息。
我怎样才能得到我的查询的踪迹?
我的代码:
User usersResponse = new User();
usersResponse = (from user in twitterCtxProp.User
where user.Type == UserType.Lookup &&
user.ScreenName == name
select user).SingleOrDefault();