The difference of TableAdapter

Hi,
TableAdapter is a new feature of VS2005.
When I design the DataSet (named MyDataSet)  in WinForm Application, it will
generate 4 file:
MyDataSet.xsd, MyDataSet..xss, MyDataSet.xsc, MyDataSet.Desginer.cs.

But if I desgin the DataSet in Web Applicaiton, it only generate two file:
MyDataSet.xsd,  MyDataSet.xss

Why How can I modify the desginer.cs when I design TableAdapter with Web Application


Answer this question

The difference of TableAdapter

  • lextm

    I think Microsoft web.net team does not expose the the .designer.cs file on purpose for the web project. Anyway, you should not touch the .designer.cs file in general. This file is generated by the designer and your modiffication will get lost once the designer regenerated the code.

    For client project (non-web), a dataset file (.xsd) can have up to 4 subfiles, you shoul only touch one file in general.   

    For examply,let's take MyDataSet.xsd as an example in a vb project

    MyDataSet.xsd -- dataset file

    MyDataSet.vb -- partial class that you can modify. To generate this file, in the designer, use view code menu to go to this file.

    MyDataSet.designer.vb -- patial class that you should not modify  

    MyDataSet.xsc -- designer internal file, you should not touch  

    MyDataSet.xss  -- designer internal file, you should not touch.

     


  • The difference of TableAdapter