как получить эквивалент "или" в nhibernate
У меня есть следующий метод.В основном, я хочу посмотреть, найдено ли ключевое слово в product.Name или Product.Description.
public ICollection<ProductCategory> FindByCompanyIdAndSearchAndPop(int companyId, string keyword)
{
var products = _session
.CreateCriteria(typeof(ProductCategory))
.CreateAlias("Product", "product", JoinType.InnerJoin)
.Add(Restrictions.Eq("CompanyId", companyId))
.Add(Restrictions.Eq("product.IsPopItem", true))
.Add(Restrictions.Like("product.Name", keyword, MatchMode.Anywhere))
.Add(Restrictions.Like("product.Description", keyword, MatchMode.Anywhere))
.List<ProductCategory>();
return products;
}