I want to have a class
public class Apple
{
public string Size { get; set;}
public string Colour { get; set;}
public string Shape { get; set;}
public int appleId { get; set;}
}
I want to show that through web services, using some web methods like this,
public void AddApple(Apple apple)
{
}
public Apple GetApple(int appleId)
{
}
Therefore, when I add a service link in visual studio to this web service, I get client proxy objects for me that allow me to create Apple on the client side and send them through the web service.
Is there a way to make one of these properties read-only on the client side? I need setters there so that I can set values ββon the server side, but I want to control what data they can update on the client side.
Any ideas?
, , , , . , .