Operation

The following sample code for the Operation action calls the Create method of the mobile business object "newProduct," and creates a new instance of Product:

List<Object> createParameterList = new List<object>();
List<Type> createParameterTypeList = new List<Type>();
//create
Product newProduct = new Product();
newProduct.Id=100;
newProduct.Name = “SUP”;


//Call Product.Create()
Sybase.UnwiredPlatform.Windows.Action.Action operationAction =    
                   Sybase.UnwiredPlatform.Windows.Action.ActionFactory.CreateOperationAction(
                    typeof(Product), newProduct,"Create",
                    createParameterList.ToArray(),createParameterTypeList.ToArray());
 operationAction.Execute();