Fluent nhibernate 如何使用Fluent NHibernate自动映射更改模式

Fluent nhibernate 如何使用Fluent NHibernate自动映射更改模式,fluent-nhibernate,fluent,Fluent Nhibernate,Fluent,在我的数据库中,每个表都属于一个模式(例如Person)。我正在使用Fluent NHibernate进行自动映射,我的问题是如何设置要使用的模式 使用,特别是IClassConvention public class SchemaConvention : IClassConvention { public void Apply(IClassInstance instance) { instance.Schema("schemaNameGoesHere");

在我的数据库中,每个表都属于一个模式(例如Person)。我正在使用Fluent NHibernate进行自动映射,我的问题是如何设置要使用的模式

使用,特别是
IClassConvention

public class SchemaConvention : IClassConvention
{
    public void Apply(IClassInstance instance)
    {
        instance.Schema("schemaNameGoesHere");
    }
}