I'm trying to build a method that will receive a Linq table, and should return a List<> of values that will be a DropDownList Datasource.
This is what I've got till now:
public static List<Structs.NameValuePair> GenDropDownItens<T>(string ValueField , string TextField ) where T: class
What i don't know how to do is, query the table getting only the fields that are passed ( ValueField, TextField)...
Tks!