-
2 votesanswersviews
NHibernate SchemaExport.Execute不创建表
按照本教程Your first NHibernate based application学习NHibernate,我在测试方法中调用 new SchemaExport(cfg).Execute(true, true, false); 以导出模式(创建Product表)以验证NHibernate是否已正确设置 [Test] public void Can_generate_schema() { ... -
0 votesanswersviews
流畅的NHibernate“数据库未通过数据库方法配置 . ”
我开始使用Fluent.NHibernate作为我已经正确使用NHibernate的C#web probject,现在我想迁移到Fluent . 当我尝试执行配置请求时,我收到错误: 创建SessionFactory时使用了无效或不完整的配置 . 检查PotentialReasons集合,以及InnerException以获取更多详细信息 . 未通过Database方法配置数据库 . 进入Po...