问题描述
我刚开始学习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".
我从googling学到,我可以使用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).
这篇关于Fluent Nhibernate - 如何指定表名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!