public static WhereClause BindFilterQueryOption(FilterQueryOption filterQuery)
        {
            if (filterQuery != null)
            {
                NHibernateFilterBinder binder = new NHibernateFilterBinder(filterQuery.Context.Model);
                return new WhereClause
                {
                    Clause = "where " + binder.BindFilter(filterQuery) + Environment.NewLine,
                    PositionalParameters = binder._positionalParmeters.ToArray()
                };
            }

            return _emptyWhereClause;
        }
        public static WhereClause BindFilterQueryOption(FilterQueryOption filterQuery)
        {
            if (filterQuery != null)
            {
                NHibernateFilterBinder binder = new NHibernateFilterBinder(filterQuery.Context.Model);
                return(new WhereClause
                {
                    Clause = "where " + binder.BindFilter(filterQuery) + Environment.NewLine,
                    PositionalParameters = binder._positionalParmeters.ToArray()
                });
            }

            return(_emptyWhereClause);
        }
 private static WhereClause ToFilterQuery(FilterQueryOption filterQuery)
 {
     return(NHibernateFilterBinder.BindFilterQueryOption(filterQuery));
 }