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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -