Hi I am newbie to NHibernate and trying to use Fluent for mapping. My entity class name is different from the database table name it has to be mapped to. I am using mapping class derived from ClassMap<>, but I can't specify the table name: the property TableName from ClassMap is read-only.
Thanks for your help.
From stackoverflow
-
Use WithTable("table_name") instead.
Chin : This is now. As of Sept 2009 Table("table_name");
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.