开发者

LINQ Option Missing in Data Source for Grid View

I don't see a LINQ option when picking a data source for a grid view - any ideas? I see the other options like SQL etc.

If I go into a page in another folde开发者_如何学Pythonr, I'm able to see this option.

I just upgraded to Visual Web Developer 2010.

Thanks!


I think there is a disconnect here. I assume you are talking about the ASP.NET design view for a aspx page, and you have the Choose Data source option. The only way to get "Linq" to show up when you choose new data source in the wizard is to have a .Net 3.5 or 4.0 as your target framework.

Then this is going to walk you through selecting a context object which if you don't have a Linq to SQL DBML setup in the project or in a referenced project you most likely will not have anything to select in the drop down.

In short it looks like you do not have the write frame work targeted by your project you are trying to do this with.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜