C# 找不到正确的重载NHibernate执行函数

C# 找不到正确的重载NHibernate执行函数,c#,nhibernate,C#,Nhibernate,我找不到NHibernate SchemaExport.Execute的重载函数 这四个布尔人做什么 new SchemaExport(Configuration).Execute(true, true, false, true, session.Connection, Console.Out); 在NH2.1中,SchemaExport.Execute()的第四个bool参数被删除。它表明您希望DDL格式良好。如果您要求NH2.1+为控制台编写DDL脚本,默认情况下它会很好地格式化DDL。

我找不到NHibernate SchemaExport.Execute的重载函数

这四个布尔人做什么

new SchemaExport(Configuration).Execute(true, true, false, true, session.Connection, Console.Out);

在NH2.1中,SchemaExport.Execute()的第四个bool参数被删除。它表明您希望DDL格式良好。如果您要求NH2.1+为控制台编写DDL脚本,默认情况下它会很好地格式化DDL。不需要单独选择。这是NH2.0的签名

    /// <summary>
    /// Executes the Export of the Schema in the given connection
    /// </summary>
    /// <param name="script"><see langword="true" /> if the ddl should be outputted in the Console.</param>
    /// <param name="export"><see langword="true" /> if the ddl should be executed against the Database.</param>
    /// <param name="justDrop"><see langword="true" /> if only the ddl to drop the Database objects should be executed.</param>
    /// <param name="format"><see langword="true" /> if the ddl should be nicely formatted instead of one statement per line.</param>
    /// <param name="connection">
    /// The connection to use when executing the commands when export is <see langword="true" />.
    /// Must be an opened connection. The method doesn't close the connection.
    /// </param>
    /// <param name="exportOutput">The writer used to output the generated schema</param>
    /// <remarks>
    /// This method allows for both the drop and create ddl script to be executed.
    /// This overload is provided mainly to enable use of in memory databases. 
    /// It does NOT close the given connection!
    /// </remarks>
    public void Execute(bool script, bool export, bool justDrop, bool format,
                        IDbConnection connection, TextWriter exportOutput)
            -- remainder of method --
//
///执行给定连接中架构的导出
/// 
///如果ddl应该在控制台中输出。
///如果应该对数据库执行ddl。
///如果只有删除数据库对象的ddl应该被执行。
///如果ddl的格式应该很好,而不是每行一条语句。
/// 
///导出时执行命令时要使用的连接。
///必须是已打开的连接。该方法不关闭连接。
/// 
///编写器用于输出生成的架构
/// 
///此方法允许执行drop和create ddl脚本。
///提供此重载主要是为了启用内存中数据库的使用。
///它不会关闭给定的连接!
/// 
public void Execute(bool脚本、bool导出、bool justDrop、bool格式、,
IDbConnection连接,TextWriter输出)
--方法的剩余部分--