[nhusers] NHibernate.Linq, WCF RIA Services, weird error.

2010-02-26 Thread Ikhwan Hayat
Hi all. I'm trying to use NHibernate.Linq with WCF RIA Services and Silverlight. I've created a Silverlight Business Application project, and these codes... I have this domain class: public class BaseDomain { public virtual Guid Id { get; set; } public virtual DateTime CreatedOn { get;

[nhusers] Unable to cast object of type 'NHibernate.Linq.Expressions.EntityExpression' to type 'NHibernate.Linq.Expressions.CollectionAccessExpression'.

2010-02-26 Thread Ikhwan Hayat
I have these codes in a service class. The intention is to query domain entities from the database but map them to a DTO object to be returned to the client. public void TestQuery() { var q = GetSession().LinqUser().Select(x = Map(x)); // Simulate evaluation of the LINQ