DB Column named "Order" with Fluent NHibernate -


I've found that in one of the meetings of a legacy DB, there is a column named "order", unfortunately I change the DB structure Can not I
My fluent looks like the NHibernate class

  Public category sitemap: automap & lt; Site & gt; {Public sitemap} (together ("site"); id (x => x.id, "id"). Unused value (0) generated. Identity (); map = & Gt; x.Name, "name"); // different column mapping and then ... map (x => x.SiteOrder, "order");}}  
< P> I do not know the problems are FluentNH or NHibernate but I can confirm that the problem is in the "order" reserved name.

How to solve it?

Update: As suggested in the form [command] suggested money Thanks!
But now I have been linked to SQL2005?

Try to order Do: `` order Since FluentNH is generating HBM files at runtime, I think the problem should be fixed.


Comments