开发者

.NET beginner question: I connected my own database. Where can I find its TableAdapter class?

开发者 https://www.devze.com 2023-01-12 11:31 出处:网络
I can\'t see it nowhere in Visual Studio\'s Solution Explorer. The tutorial that I am following is using the Northwind database and hence the need to add the code line \"using NorthWindTableAdatpter;\

I can't see it nowhere in Visual Studio's Solution Explorer. The tutorial that I am following is using the Northwind database and hence the need to add the code line "using NorthWindTableAdatpter;" statement.

So I thought I needed to add "using myDBTableAdapters" statement in my code which I did, but it's giving an error saying:

"The type or namespace name 'myDbTableAdapters' could not be found (are you missing a using directive or an assembly reference?)"

What's wrong? Where is the class for myDB's table adapter? I searched the .xsd file, but there's no mention of "myDBTableAdapters". It's not there in the Solution Explorer.

开发者_JAVA技巧Help?


Have you created the typed DataSet? In your solution explorer can you see a file with extension "xsd"? That's the DataSet schema file. Open that in design view and you can see your adapters there.

0

精彩评论

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