In a multitier application should a client be allowed to send its own linq expressions to the server?
问题 The rationale: HQL and NH criteria are NHibernate specific constructs and as such they are server side DAL implementation details. I do not want them to "leak" to the client side. So, our client side provides LINQ expressions for the server to process. Seems legitimate to me, some, however, think otherwise and so I would like to know why. Thanks. 回答1: The argument against accepting expressions from (or exposing IQueryable<> to) the client side is that it allows non-client logic like filtering