流利的NHibernate主键约束命名约定 [英] Fluent NHibernate primary key constraint naming conventions

查看:163
本文介绍了流利的NHibernate主键约束命名约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以为Fluent NHibernate中的主键约束创建一个命名约定吗?

Is there any way to create a naming convention for my primary key constraints in Fluent NHibernate?

我知道你可以命名外键约束,可以命名主键约束。

I know you can name foreign key constraints, but it does not appear possible to name the primary key constraint.

推荐答案

FNH的James Gregory说...

James Gregory from FNH says...


不,这不是通过NHibernate支持的,所以我们也不能支持它。

No, that's not supported through NHibernate, so we can't support it either.

http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/9ea7155407d33772

这篇关于流利的NHibernate主键约束命名约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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