hi
my class have a property named WorkType (enum) that added flags attribute. this property keep multiple enum value (FullTime | PartTime | Freelance). i want query using IQuery interface, but can't do it:(
my query;
(for example, my enum property value is "FullTime | PartTime | Freelance")
IQuery query = Session.CreateQuery("select a from Entity.Advert a where a.WorkType = :p1 or a.WorkType = :p2");
query.SetEnum("p1", enmWorkType.FullTime);
query.SetEnum("p2", enmWorkType.PartTime);
query.List<Entity.Advert>();
this query return 0 count
how can i do this query?
|