How can you get a single column back from a query instead of a whole object?
I could do something like this to get the whole object, but all I want is the names:
IList<Tribble> tribbles = session.CreateCriteria(typeof(Tribble)).List<Tribble>();
IList<string> names = new List<string>();
foreach (Tribble t in tribbles) {
names.Add(t.Name);
}
Update #1: I would like to be able to specify additional criteria, so is it possible to just exclude certain columns from being retrieved?
Update #2: See my answer below for the answer I discovered.