I'm sorry. I found the answer, I needed to use the back-ticks to tell nhibernate where to use the delimiters.
On Jun 10, 10:15 am, sed <[email protected]> wrote: > When I attempt to initialize an associated entity called User > NHibernateUtil.Initialize(comment.User); > > I get an error: Incorrect syntax near the keyword 'User'. > > Unfortunately the database I inherited named the table User which is > also a keyword in SQL2005. Does NHibernate not automatically use [ ]'s > around table names or is that something I have to specify? I am using > the SQL2005 dialect. > > Or could my problem be related to something else such as my many-to- > one mapping? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
