When I use the same code in a Web Service, I was able to create a strong typed DataSet. But I can't use this because my client wants a remote server.
Here is the code:
public
DsProject GetProject(){
DsProject ds = null;
try
{
ds = new DsProject();
SqlDataAdapter da = new SqlDataAdapter(this.ProjectSelCmd);
da.Fill(ds);
}
catch(Exception ex)
{
ds = null;
throw(ex);
}
return(ds);
} public DataSet GetProject2()
{
DataSet ds = null;
try
{
ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter(this.ProjectSelCmd);
da.Fill(ds);
}
catch(Exception ex)
{
ds = null;
throw(ex);
}
return(ds);
}
Replies
Know the answer? Post it — somebody with the same question will find it here.