What's wrong with this NHibernate mapping file? -


I can not load unit error due to incorrect syntax near "file". "}

Here is my mapping file. I am assuming that I am not running properly, but I do not know what it is. I do not think it's my Prepay.file is the name of the table. Thanks in advance!

   class name =" file "table =" preapplication.file ">   gt; property name =" date-uploaded "column =" date-uploaded "type =" date-time "no-null = "True" /> gt; Property Name = "filename" column = "` filename` "type =" string "no-null =" true "/> & gt; Properties name =" basic filename "column = "Basic filename" type = "string" no-null = "true" />  Property name = "content type" column = "content type" type = "string" not-null = "true" />    < / Pre> 

Edit: Using the provided suggestions, I've found that my table has a problem called file. If I "PreApplication. [File] ", it works correctly, but I do not think it's the way to" NHibernate. "I think I want to use the tick character (`) but I do not seem to be doing this.

I have found the right way to decide. Attribute has been found and it has been changed to:

  class name = "file" schema = "preapplication" table = "` file` "& gt;  

Without this hardcode the file ran properly with the table name [] Thanks for everyone!


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -