You're using SetEntity, which assumes the value is an entity. Try SetParameter.
On Tue, Jul 28, 2009 at 9:22 AM, jeeeze <[email protected]> wrote: > > Hi all > > when I run the following query, I get a MappingException "No persister > for: System.DateTime": > > System.Collections.IList list = session.CreateQuery(@"from Timeline > tline left join tline.Periods periods where tline.User = :user and > aps.StartTime > :startdate") > .SetEntity("user", user) > .SetEntity("startdate", DateTime.Now) > .List(); > > NHibernate version is 2.1.0.3001, I am working against SQL Server 2005 > Express. > > Any ideas? > > J. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
