I would like to make a query that returns the rows that has proper name.
public static IList<Event> ListWeaponAndTriggerEvents(ISession session,
List<string> weaponAndTriggerList)
{
session.CreateCriteria(typeof(Event))
foreach(string str in weaponAndTriggerList)
{
.Add(Expression.Eq("name", str)
}
}
I know this code is wrong but I want to do something like this (the logic). Is it possible to do it with OR or Disjunction?
What about: