Guest_imported
New member
- Jan 1, 1970
- 0
I just created a Webservice and I have the following Webservices:
[WebMethod(Description = "Returns the table of Users as a DataSet"]
public UserListService.UserDataSet GetUserList()
{
UserDataAdapter.Fill(userDataSet1);
return userDataSet1;
}
[WebMethod(Description = "Updates changes made to the DataSet"]
public UserListService.UserDataSet UpdateUsers(UserListService.UserDataSet UserChanges)
{
if (UserChanges != null)
{
UserDataAdapter.Update(UserChanges);
return UserChanges;
}
else
{
return null;
}
}
Now, How would I go about creating the Insert, Edit and Delete commands or would I have to even bother? What I'm saying is, does the update command do all this for me? If not would someone be able to write a small Insert command for me so I have an idea how it looks?
BTW, I did this in .NET studio so all the parameters etc are already defined.(username, password, email).
Thnx.
[WebMethod(Description = "Returns the table of Users as a DataSet"]
public UserListService.UserDataSet GetUserList()
{
UserDataAdapter.Fill(userDataSet1);
return userDataSet1;
}
[WebMethod(Description = "Updates changes made to the DataSet"]
public UserListService.UserDataSet UpdateUsers(UserListService.UserDataSet UserChanges)
{
if (UserChanges != null)
{
UserDataAdapter.Update(UserChanges);
return UserChanges;
}
else
{
return null;
}
}
Now, How would I go about creating the Insert, Edit and Delete commands or would I have to even bother? What I'm saying is, does the update command do all this for me? If not would someone be able to write a small Insert command for me so I have an idea how it looks?
BTW, I did this in .NET studio so all the parameters etc are already defined.(username, password, email).
Thnx.