I have an object that has a string property called tags. I would like to request this object based on the fact that a particular row is in the Tags property.
So, for example, I would have the IList function GetEntityByTag (string tag), this will return all Entities that have the tag value in the "Tags" property.
I tried using the ICriteria ... Expression.In (PropertyName, Value) approach, but this is the exact opposite. I need something like Expression.In (Value, PropertyName).
IQuery might be a better strategy, but I could not find any type of HQL status for the CONTAINS 'abc' property.
Any help or a waypoint would be greatly appreciated!
Itamar
source
share