Q:

Cant overriding class when mapping with NHibernate

I have one class "MyClass" mapping with NHibernate but at my database table name  is upper case("MYCLASS"). I'm trying to make a integrated test, and when execute my test i got sql error ("Dynamic Sql Error"), i check the problem and my query is comming with double quotes at table name.
public class MyClass 
{
        public virtual int ID { get; set; }
        public virtual int NAME { get;  set; } 
}

How can i change NHibernate for dont use double quotes in table name query?

A:

I found a solution, in mapping just have to add a property Table("TableName").
public class MapMyClass() : ClassMap<MyClass>
{
    public MapMyClass{
       Table("MYTABLE");
       Id(c => c.ID);
       Map(c => c.NAME);
    }
}

