>>>>I am thinking of how better organize some files in the ASP.NET 4.0 project. The project will use datasets (xsd) files. So my questions are:
>>>>1. Will I have to copy the .xsd file to the customer server when deploying the application?
>>>>2. Is it a good idea to create a separate folder for all DataSets (xsd) that will be used in the project?
>>>>TIA
>>>
>>>I created a folder (in the application folder of VS 2012) Data_sets (so my directory tree is now App_Name\Data_Sets. Then I copy dataset file MyDataSet.xsd to the folder Data_Sets. Then I add an existing item (Data Set) to the Project. So in the VS tree I see the folder Data_sets and the dataset MyDataSet. But how do I use this dataset in the code? For example, the following does not work:
>>>
>>>
>>>MyDataSet dstMyData;
>>>// VS does not find MyDataSet
>>>
>>>
>>>How do I refer in the code that the dataset is not in the application root folder but in the sub-folder?
>>
>>
>>The xsd has a namespace
>>
>>double click on the xsd
>>rightclick - view code
>
>I get it. Thank you.
>But now that I have to use the namespace in the code, when referencing this dataset, I am not sure that placing the dataset into a separate folder was such a great idea. Except it is easier to see all dataset in the VS explorer.
Never done asp.net - but
using The.NameSpace.Of.The.Dataset;
MyDataSet dstMyData;
or
http://stackoverflow.com/questions/1697169/is-it-possible-to-use-the-using-statement-in-my-aspx-views-asp-net-mvc
Gregory