public ServiceReference.TableModel ConvertToServiceModel() { List <ServiceReference.Attribute> attributesToWebService = new List <ServiceReference.Attribute>(); foreach (var attribute in Attributes) { attributesToWebService.Add( new ServiceReference.Attribute { Name = attribute.Name, Type = attribute.Type } ); } ServiceReference.TableModel tableModelToWebService = new ServiceReference.TableModel() { Name = this.Name, NumberOfAttributes = this.NumberOfAttributes, Attributes = attributesToWebService.ToArray() }; return(tableModelToWebService); }
public System.Threading.Tasks.Task <ServiceReference.AddToTableInBDResponse> AddToTableInBDAsync(ServiceReference.TableModel table, ServiceReference.ArrayOfString valuesToInsert) { ServiceReference.AddToTableInBDRequest inValue = new ServiceReference.AddToTableInBDRequest(); inValue.Body = new ServiceReference.AddToTableInBDRequestBody(); inValue.Body.table = table; inValue.Body.valuesToInsert = valuesToInsert; return(((ServiceReference.WebServiceSoap)(this)).AddToTableInBDAsync(inValue)); }
public AddToTableInBDRequestBody(ServiceReference.TableModel table, ServiceReference.ArrayOfString valuesToInsert) { this.table = table; this.valuesToInsert = valuesToInsert; }
public System.Threading.Tasks.Task <ServiceReference.CreateTableInBDResponse> CreateTableInBDAsync(ServiceReference.TableModel table) { ServiceReference.CreateTableInBDRequest inValue = new ServiceReference.CreateTableInBDRequest(); inValue.Body = new ServiceReference.CreateTableInBDRequestBody(); inValue.Body.table = table; return(((ServiceReference.WebServiceSoap)(this)).CreateTableInBDAsync(inValue)); }
public CreateTableInBDRequestBody(ServiceReference.TableModel table) { this.table = table; }