【问题标题】:Can't find overloaded Execute method for SchemaExport找不到 SchemaExport 的重载 Execute 方法
【发布时间】:2009-07-21 12:39:08
【问题描述】:

我的第一个 NHibernate 应用(如 ORM)遇到问题

在本例中:http://nhibernate.info/doc/tutorials/first-nh-app/your-first-nhibernate-based-application.html

他们使用这个简单的测试:

public void Can_generate_schema()
        {
            var cfg = new Configuration();
            cfg.Configure();
            cfg.AddAssembly(typeof (Product).Assembly);

            new SchemaExport(cfg).Execute(false, true, false, false);
        }

但我找不到 4 个参数 3 的 Execute 方法:

new SchemaExport(cfg).Execute(false, true, false);

我在这里错过了什么?

【问题讨论】:

    标签: nhibernate orm


    【解决方案1】:

    该重载已在 v2.1 中删除。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-22
    • 1970-01-01
    • 2013-07-23
    • 2018-02-22
    • 1970-01-01
    相关资源
    最近更新 更多