Fluent Nhibernate - 如何指定表名 [英] Fluent Nhibernate - How to specify table name

查看:243
本文介绍了Fluent 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".

我从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 - 如何指定表名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆