I have been landed into the middle of a project that is using MVC2 & NHibernate. I haven't worked with NHibernate before, so as simple as this question might seem, I'm a bit out of my depth.
I have to create a directory for a number of Company Groups. The first task is to get a distinct list of the first letter for each company.
So if we have
ACompany1
ACompnay2
BCompany1
DCompany1
DCompany2
ECompany1
I need to get a list like
A B D E (note, there's no 'C')
Can somebody please provide me with an outline of what I need to do? Thanks