Solved

Build Class Library That Contains Typed DataSets

Posted on 2009-04-10
11
288 Views
Last Modified: 2012-05-06
I'm trying to build a class library that i can share among a bunch of other projects/solutions.  I have about 10 vb files in it then I have about 6 xsd files that define typed datasets being referenced in a few of the vb files.  Anyway, it took me a while just to be able to get intellisense not to balk at my configuration.appsettings but now it's not happy with any of my xsd files.  What am i missing?
0
Comment
Question by:davidcahan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24129763
I don't know...what are you missing?
0
 

Author Comment

by:davidcahan
ID: 24142449
well....why is it balking at my xsd files and my calls to those "datasets"
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24142584
What do you mean by "balking"?  Are you getting run-time exceptions or design-time compiler errors?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:davidcahan
ID: 24142872
design time compiler erros
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24148449
Now, what are those errors?
0
 

Author Comment

by:davidcahan
ID: 24148601
for each of my Functions where i'm returning an instance of one of my typed datasets, I get a compiler error that says dsFoo is not defined (where dsFoo.xsd is one of my Typed Datasets and dsFoo is also the name of the "table" in that DataSet)

so Public Function SelectFoo() as dsFoo   tells me that dsFoo is not defined.
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 500 total points
ID: 24148635
Do you have an Imports at the top of the class module to short-cut the reference for the Namespace that is generated for the typed DataSet?

Example:

Imports AdventureWorksDataSet
0
 

Author Comment

by:davidcahan
ID: 24148959
no
0
 

Author Comment

by:davidcahan
ID: 24148968
so in my example it would be

Imports dsFoo

0
 

Author Comment

by:davidcahan
ID: 24149014
actually, something strange....i right click on dsFoo.xsd expecting to see XML and I don't instead it opens dsFoo.vb?  this is not what happens when i click on the same file in my web site project in my app_code folder.  
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24149548
The class library project type works differently than the Web Site project.  If you want to see the XML, then you need to right-click the .xsd file, and select "Open With" and "Source Code Editor".
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question