WCF, Linqs and WPF
Posted on 2009-12-24
Please, explain if I'm correct.
I have two tables (clients and cities). They are obviously connected by city code. If wish to see all the clities I create a service in WCF as a Linq call returning a List (because WPF ListView needs a List) and this List<CITIES_TABLE>, looks like this. IEnumerable is not recognized by WPF in Blend. In this code Linq defines automaticaly the class that explains the table structure.
Now I wish to query the clients and its cities by its names. In this case I need to create a special class that brings data from clients and cities tables? My return must br List<CLIENTS_CITIES>. There is no way to create this return not declaring it by hand code?