tags:

views:

43

answers:

2

Is having an entity named Order an issue with nhibernate?

Update

I ask because, it does!

I just ran sql profile, and when I run the code that they generate I get an error saying:

Msg 156, Level 15, State 1, Line 10 Incorrect syntax near the keyword 'Order'.

(or I have some issue with my mapping??)

+1  A: 

Nope. I have a model object called Order, no problems.

justinlatimer
+2  A: 

No. All you need is to use the class from the right namespace.

As for mapping, try using "[Order]" as a table name instead of "Order".

Li0liQ
Yup, that worked thanks!
mrblah