NHibernate - Implement "NOT IN" query using ICriteria -
I have started to capture from NHibernate. I am trying to execute a query that selects all records from a table , But with the excluded filter list of IDs, e.g. With these ID values, get all the products except all of these.
Generally, I would like to be in the ID directly in T-SQL, not to be included in this section.
SELECT * From products where the product is not (1,59, 23, 45)
How can I do this in NHibernate, either ICRTIARIA or HQ (but preferably icitrea)?
Try
. Add (Expression. ("Productivity", New Ent [] (1, 5, 9, 23, 45}))
Comments
Post a Comment