LINQ how to concatenate 2 db columns to display in dropdownlist
- by Simke Nys
I'm trying to concatenate product_name with product_prize_kg by using LINQ so I can display it as one field in a dropdownlist. When I try to do this I get the following error.
value of type 'system.collections.generic.list(of anonymous type )'
cannot be converted to ...
My code is like this:
Public Function selectAll() As List(Of…