Fluent NHibernate Column Mapping with Reserved Word

Posted by Josh Close on Stack Overflow See other posts from Stack Overflow or by Josh Close
Published on 2009-10-09T17:33:18Z Indexed on 2010/05/21 4:50 UTC
Read the original article Hit count: 250

I've read that using a back tick ` should allow for using of reserved words. I'm using SQL Server and Fluent NHibernate and have a column name "File". If I map it with

"`File"

it tries using

[Fil]

so it's adding the brackets correctly, but dropping the "e" from the end. If I map it as

"`Filee"

it uses

[File]

correctly.

Am I doing something wrong or is this a bug in NHibernate or Fluent Nhibernate?

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about fluent-nhibernate