Nhibernate 在Castle活动记录中传递我自己的连接字符串

Nhibernate 在Castle活动记录中传递我自己的连接字符串,nhibernate,castle-activerecord,Nhibernate,Castle Activerecord,如果使用Castle Active Record,如何注入自己的连接字符串?我从 IDbConnection connection = new SqlConnection("Data Source=.;Initial Catalog=TestB;Integrated Security=SSPI"); connection.Open(); using (new DifferentDatabaseScope(connection)) { TestTableDatabaseA test3 =

如果使用Castle Active Record,如何注入自己的连接字符串?

我从

IDbConnection connection = new SqlConnection("Data Source=.;Initial Catalog=TestB;Integrated Security=SSPI");
connection.Open();
using (new DifferentDatabaseScope(connection))
{
    TestTableDatabaseA test3 = TestTableDatabaseA.Find(1);
    Console.WriteLine(test3.Title);
}