Return Strongly Typed Data Set from Web Service



I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe
tool. I want to be able to access fields using
ds.Customer[0].CompanyName.

The problem is when I return this DataSet from a Web Service it adds
another Table to the DataSet that contains the data. I have to access
the data using ds.Tables[1].Rows[0]["CompanyName"].ToString(). This
defeats the whole purpose of using a strongly typed DataSet.

Thanks in advance for the help.

.



Relevant Pages

  • Re: Return Strongly Typed Data Set from Web Service
    ... I want to be able to access fields using ... > defeats the whole purpose of using a strongly typed DataSet. ... The web service proxy has trouble ... // load the generic data from the data layer into a strongly typed dataset ...
    (microsoft.public.dotnet.languages.csharp)
  • Return Strongly Typed Data Set from Web Service
    ... I've created a strongly typed DataSet using the xsd.exe ... I want to be able to access fields using ... defeats the whole purpose of using a strongly typed DataSet. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Return Strongly Typed Data Set from Web Service
    ... I've created a strongly typed DataSet using the xsd.exe ... I want to be able to access fields using ... defeats the whole purpose of using a strongly typed DataSet. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Return Strongly Typed Data Set from Web Service
    ... I've created a strongly typed DataSet using the xsd.exe ... I want to be able to access fields using ... defeats the whole purpose of using a strongly typed DataSet. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How do you make typed dataset internal
    ... Webform or ASPNet?. ... with a generated strongly typed dataset ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.general)

Loading