Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a typed dataset
Message
From
07/07/2003 17:47:13
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00807682
Message ID:
00807695
Views:
21
John,

It sounds like the question you are really asking, is how to set the namespace to be what you want instead of just MySolution. If you right-click on the project and choose Properties you can change the Assembly Name and/or the Default Namespace.

~~Bonnie


>How do i create a new instance of a typed dataset that is auto-generated from a xsd file.
>
>Product ds = new Product(); // dataset
>
>This will cause the error:
>The type or namespace name 'ProductDataset' could not be found (are you missing a using directive or an assembly reference?)
>
>The .NET namespace is set to the project name by default. For example, if I have a product.xsd in MySolution --> the product.cs namespace is set to MySolution but I want it to be set to MyCompany.Product.
>
>
>TIA, John
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform