Re: VS2008: should data sets be placed in App_Data?

Tech-Archive recommends: Fix windows errors by optimizing your registry



re:
!> DataSets (i.e. xsd)
!> I was referring to the process of creating/adding strongly typed data sets to a project

Datasets aren't the same as XSD schema.
An XSD file is a schema class that defines what your xml will look like, not including data.

http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=97

Also, see :
http://msdn2.microsoft.com/en-us/library/ex526337.aspx

"Arbitrary file types can be placed in the App_Code folder to create strongly typed objects.
Placing Web service files (.wsdl and .xsd files) in the App_Code folder creates strongly typed proxies."




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"dan" <dan@xxxxxxxxxx> wrote in message news:%23X$XilfiIHA.484@xxxxxxxxxxxxxxxxxxxxxxx
In VS2008 it does not suggest as it used to in VS2005. The only way to place DataSets (i.e. xsd) in App_Code is to
drag them into the folder after creating them. It is not a big deal but I'm curious what the best practice is.
Another difference is that when you Add a DataSet the TableAdapter wizard is no longer automatically launched.
Does your VS2008 behave like VS2005 in the above scenarios?

And I don't mean data files.

"Patrice" <http://www.chez.com/scribe/> wrote in message news:ugWCWUfiIHA.5956@xxxxxxxxxxxxxxxxxxxxxxx
Try to add them from the main menu. It should suggest to add them in App_Code...

It looks like to me you are confusing DataSets with data files (such as a SQL Server MDF file) ???

--
Patrice

"dan" <dan@xxxxxxxxxx> a écrit dans le message de news: uoaBJOfiIHA.748@xxxxxxxxxxxxxxxxxxxxxxx
I'm working on a small Web project in VS2008. In VS2005 it was recommended that DataSet be placed in App_Data
folder (the framework did that automatically). In VS2008 the framework does not give me that option. The Add.New
Item in the App_Data context menu does not even list the DataSet.

Does anyone know what is behind the change and what the recommended practice is?
Thanks.







.



Relevant Pages

  • Re: designing a class library that uses .xsd files
    ... When extracting the code into your dll from the code-behind, ... slightly to take either the XSD file's filename, ... > schema is stored in an .xsd file which exists in the /schemas folder ... > shouldn't look in the /schemas folder. ...
    (microsoft.public.dotnet.general)
  • XSD question
    ... I want to check for my XML having at least one <folder> tag ... What is wrong with my XSD below? ...
    (microsoft.public.dotnet.languages.csharp)
  • XSD question
    ... I want to check for my XML having at least one <folder> tag ... What is wrong with my XSD below? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ByRef/Ref passing in Web Services
    ... > say "The .NET framework will map a ref param onto WebServices semantics". ... > approach to web services is from an object mindset which is fatal. ... > framework (SOAP, WSDL, XSD, etc). ... > implementation of web services that wants to map XML messages onto classes ...
    (microsoft.public.dotnet.framework)
  • Re: ByRef/Ref passing in Web Services
    ... then I'd rephrase "WebServices can indeed pass ByRef/ref parameters" to say "The ..NET framework will map a ref param onto WebServices semantics". ... Web Services are about XML message passing. ... My point is that the framework is so good at hiding the real thing we're working with (XML) such that it lets you do dumb things that you really shouldn't be doing. ... The reason is that XML Schema is how we represent the structure of the XML we're sending across the wire, and the framework infers an XSD from your parameters' type definitions. ...
    (microsoft.public.dotnet.framework)