Solved

Build Class Library That Contains Typed DataSets

Posted on 2009-04-10
11
282 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
  • 6
  • 5
11 Comments
 
LVL 96

Expert Comment

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

Author Comment

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

Expert Comment

by:Bob Learned
Comment Utility
What do you mean by "balking"?  Are you getting run-time exceptions or design-time compiler errors?
0
 

Author Comment

by:davidcahan
Comment Utility
design time compiler erros
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Now, what are those errors?
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:davidcahan
Comment Utility
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
Comment Utility
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
Comment Utility
no
0
 

Author Comment

by:davidcahan
Comment Utility
so in my example it would be

Imports dsFoo

0
 

Author Comment

by:davidcahan
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now