Let's say I have the following request
ICriteria query = session.CreateCriteria(typeof(T));
How can I find out the key field T so that I can add an expression like so:
query.Add(Expression.In(keyField, someListOfObjects.ToArray()));
Any ideas?
a source
to share