خرید بک لینک

Vote count: 0

Evening All,

I am extracting data from a API which exposes records as properties of the class so an example would be

For Each entry As Webservice.Names In objResponse.results
    string = string & "'firstname'=" & entry.firstname
    string = string & "'suame'=" & entry.suame
next

now we have about 50 entities in the webservice, and each has at least 10 "fields" my question is can I expose properties any other way ?

i.e. could i

For Each entry As Webservice.Names In objResponse.results
    for each prop in entry.properties
         string = string & "'" & prop.name & "'=" & entry.fields(prop.name)
    next
next

or similar, i can't seem to expose the properties above, but really looking for a way that i don't have to hand type every property against the string for inserting to the database.

any thoughts on how to achieve this within VB if the properties aren't exposed as above example

Thanks In Advance

asked 46 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 31 فروردين 1395 ساعت: 1:38

صفحه بندی