views:

21

answers:

0

I want to query a column with two enumerations values. If enum==a or enum==b matches for that column in databse then return me.

Does anybody know to do this?

I cna make for one enum, but how to add another enum into this. System.Collections.ArrayList list = (System.Collections.ArrayList)_mapper.Run(delegate(ISession session, object[] arguments) {ICriteria criteria = session.CreateCriteria(typeof (ObjectX)) .Add(Expression.Eq("ColumnName", ENumA));

               return criteria.List();
        }, true);