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.Datasets are usually stored in memory, as an in-memory database.
Are you writing the Dataset to a file ?
If not, using App_Data doesn't make sense.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"dan" <dan@.nospam.com> wrote in message news:uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...darkred">
> I'm working on a small Web project in VS2008. In VS2005 it was recommende
d 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 practi
ce is?
> Thanks.
>
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@.nospam.com> a crit dans le message de news:
uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...
> 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.
>
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@.TK2MSFTNGP03.phx.gbl...
> 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@.nospam.com> a crit dans le message de news:
> uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...
>
I did not mean instantiated DataSets objects at run time. I was referring
to the process of creating/adding strongly typed data sets to a project in
VS2008 (i.e. Solution Explorer.Add New Item).
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:e$5LnQfiIHA.1164@.TK2MSFTNGP02.phx.gbl...
> Datasets are usually stored in memory, as an in-memory database.
> Are you writing the Dataset to a file ?
> If not, using App_Data doesn't make sense.
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en espaol : http://asp.net.do/foros/
> ======================================
> "dan" <dan@.nospam.com> wrote in message
> news:uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...
>
App_Data is for data, like databases, and data files. Dataset is a class. It
has no place in App_Data.
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"dan" <dan@.nospam.com> wrote in message
news:uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...
> 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.
>
re:
!> DataSets (i.e. xsd)
!> I was referring to the process of creating/adding strongly typed data set
s 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/Articl...px?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 strongl
y typed objects.
Placing Web service files (.wsdl and .xsd files) in the App_Code folder crea
tes strongly typed proxies."
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"dan" <dan@.nospam.com> wrote in message news:%23X$XilfiIHA.484@.TK2MSFTNGP06.phx.gbl...[colo
r=darkred]
> In VS2008 it does not suggest as it used to in VS2005. The only way to pl
ace 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.[/color]
> "Patrice" <http://www.chez.com/scribe/> wrote in message news:ugWCWUfiIHA.
5956@.TK2MSFTNGP03.phx.gbl...
>
Yes, I have the same behavior that is if I chosose "WebSite", "Add new
item", "Dataset" it suggest to add to app_code. BTW which model are you
using for your project (web site or web application ?)
Patrice
"dan" <dan@.nospam.com> a crit dans le message de news:
%23X$XilfiIHA.484@.TK2MSFTNGP06.phx.gbl...
> 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@.TK2MSFTNGP03.phx.gbl...
>
I just noticed that made a silly mistake in my original post. It should've
read 'App_Code' instead of 'App_Data'.
Sorry about the confusion.
I'm going back to VS2005. Could not get it to work. I've got also other
issues with VS2008: no table templates, no ATL server libraries for native
development, etc. Simply not worth the trouble.
Thanks to everyone who tried to help.
"dan" <dan@.nospam.com> wrote in message
news:uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...
> 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.
>
I made a mistake in my original post - I meant "App_Code". Sorry about
that. Anyway, in VS2005 when I add a DataSet to a project the framework
auto-suggests to add it to "App_Code" folder. VS2008 does not give me that
option and associated xsd files are placed in the root instead. As I said,
a minor thing but still annoying.
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:ugWCWUfiIHA.5956@.TK2MSFTNGP03.phx.gbl...
> 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@.nospam.com> a crit dans le message de news:
> uoaBJOfiIHA.748@.TK2MSFTNGP04.phx.gbl...
>
0 comments:
Post a Comment