【发布时间】:2009-09-06 10:29:49
【问题描述】:
我有一个名为Group的类
我尝试测试配置:
var cfg = new Configuration();
cfg.Configure();
cfg.AddAssembly(typeof (Group).Assembly);
new SchemaExport(cfg).Execute(true, true, false);
当我调试这个时,我得到以下 sql:
create table Group (
ID INT IDENTITY NOT NULL,
Name NVARCHAR(255) null,
CreatedDate DATETIME null,
primary key (ID)
)
我记得,Group 键是为 Group By
保留的那么为什么 NHibernate 不使用 Group 之类的引号作为表名呢?
顺便说一句,我使用的是 Sql Server 2005 和 NHibernate 2.1
【问题讨论】:
标签: sql-server nhibernate debugging orm