User is a keyword in SQL2005-Dialect. Map this column as ´User´ to make NH escape it correctly.
-Markus 2009/6/10 sed <[email protected]> > > 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 -~----------~----~----~----~------~----~------~--~---
