Okay, now that i have important stuff in the subject....
I have a winform, talking to a WCF
I am trying to put in 3 combo boxes..
My tables
CustomerVendor
AutoId
VendorId --->fk, Vendor
CustomerId --->fk, customer
DestinationId --->fl, customer
Vendor
VendorId (identify,pk)
AName....
Customer
CustomerId (identify,pk)
AName....
in my WCF i have
GetVendors..... this will get me all the vendors in Vendors and prefetch customerVendors and subpath Customer and Destination for each CustomerVendor..
does it work., yes., no issues with compiling.,
I am doing this so that just 1 call is made to the WCF... also., when the comboboxes are changed (selection)., i do not want to make another call to the WCF....
in my first dropdown., i have vendors
vendor1, vendor2, vendor3.....
vhen a vendor is selected i have.,
Dim Thecollection As VendorEntity = CustomerCollection(cmb_vendor.SelectedIndex)
Dim acollection As IEntityCollection2 = Thecollection.CustomerAccount
cmb_customers.DataSource = acollection
cmb_customers.DisplayMember = "AutoId"
'cmb_customers.ValueMember = "AutoId"
cmb_customers.SelectedIndex = -1
This will ofcourse work., it will populate the 2nd dropdown with the AutoId values in CustomerVendor....
What i want is.... Customer.AName.... so the subpath.... child., whatever you want to call it. when i try to do that., i just get types... for example
Mycomponent.EntityClasses.CustomerAccountEntity
for all the values....
is there a clean and easy way to step down to the CustomerAccount.Customer.Aname?