Hi all,

sorry for the ugly subject... :-)

I currently have a scenario like the following (pseudo code):

abstract class Subject
{
   int Id;
}

class Person : Subject
{
   String FirstName;
   String LastName;
}

class Company : Subject
{
   String CompanyName;
}

Having a list of keywords (IEnumerable<String>) what I need to retrieve is a
list of Subjects that match the given keywords list and I need to search the
keyword in both ComanyName and FirstName or LastName. Something similar to a
full text search, my user inputs something like "acme; mauro; foo" and I
need to retrieve all the possible subjects match.

How to achive it? Using Linq to NH or hql or ICriteria it does not matter.

TIA, best regards
.m


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to