功能NHibernate - 如何指定表名
我刚开始学习NHibernate和流利的NHibernate的。我想指定表名,当我创建我的映射类。
I just started learning Nhibernate and Fluent Nhibernate. I want to specify table name when I create my mapping class.
在应用程序的实体名称为CustomerOrders,但在Oracle数据库中,表名是CUSTOMER_ORDERS。
Entity name in application is "CustomerOrders" but in the oracle database, table name is "CUSTOMER_ORDERS".
我从谷歌上搜索,我可以用WithTable指定数据库表名的教训。
I learnt from googling that I can use "WithTable" to specify database table name.
我不知道如何使用它,并在那里为VS2008没有找到方法。
I am not sure how to use it and where as Vs2008 didn't find the method.
感谢
WithTable
更名为表格
的1.0发布。有人提到在发行说明(第一点)。
WithTable
was renamed to Table
for the 1.0 release. It was mentioned in the release notes (first bullet point).