nhibernate - Convert SQL to linq in activeRecord -
i have statement sql
select * messages messageid in (select messagesid publisher pubid = 22)
in project asp.net using activerecord:
from m in activerecordlinq.asqueryable<message>()select m
this correct project
but i've written
from m in activerecordlinq.asqueryable<message>() activerecordlinq.asqueryable<publisher>().any(t => t.messagepublishersitekey.messageid == m.messageid && t.publishersiteid == 22) select m
what isn't working.
i found this, don't know how is. http://www.sqltolinq.com/
Comments
Post a Comment