0

メンバーを追加/編集するためのメンバー フォームを開きます。独自のエンティティ マネージャーがあり、[保存] ボタンをクリックすると、フォームを閉じてリスト フォームに戻ります。

保存が処理されると、メンバーの残高を計算する CalculateOwing というルーチンを呼び出します。このメソッドは、アプリケーションの多くの領域から呼び出すことができるため、別の .cs ファイルにあります。

CalculateOwing メソッドは、別のエンティティ マネージャーに配置する必要がありますか?それとも、処理中のメンバー レコードと同じエンティティ マネージャーに配置する必要がありますか?

4

1 に答える 1

0

A response to this question can be seen at http://www.ideablade.com/forum/forum_posts.asp?TID=4686&title=need-advice-on-entity-manager

EDIT:

Including the response here.

"If you want the results of CalculateOwing to be part of the same database transaction, you need to call it before the Save completes and on the same EntityManager that the Save is using."

于 2014-04-30T17:21:37.527 に答える