0
にバインド:現在の会話は利用できません。会話を作成し、直接法では、以下のコードを使用する場合、私はこのエラーを取得するコンテナ
var fooRepository = ServiceLocator.Current.GetInstance<FooRepository>();
var fooObj = fooRepository.GetFooObj(someText); //get Error
そして、スタックトレースに含まれていますuNhAddIns.SessionEasier.Conversations.ThreadLocalConversationalSessionContextで
をNHibernate.Impl.SessionFactoryImpl.GetCurrentSession()で.CurrentSession()
エラーメッセージ:
現在の会話はありません。会話を作成してコンテナにバインドする
一般的にどのようにCreate a conversation and bind it to the container
?