Hi,
I'm trying to extend my webapp with IronPython, which is working wonderfully so far, but I can't seem to get it to play nicely with my NHibernateLinq setup.
I'm making an IQueryable<Case> available to the IronPython code, and then I'm using the Linq methods to filter it down, such as:
Enumerable.Where[object](data, Func[object, bool](func))
This works fine, but because I'm using Enumerable instead of Queryable, it's pulling back ALL the records from the database, before running the Where function on them, when I want the Where clause to be added to the SQL query generated by NHibernate.
So I tried:
Queryable.Where[object](data, Func[object, bool](func))
But that simply yields:
Microsoft.Scripting.ArgumentTypeException: expected IQueryable[object], got Query[Case]
Am I missing something? Is this even possible?
Anthony