Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UpdateModelコントローラー以外のクラスで使用しようとしていますが、機能しません。コントローラークラスを呼び出すUpdateModelと、完全に機能します。参照は両方のクラスで同じです。
UpdateModel
誰かがこれについて私を助けてくれませんか?
残念ながら、これは参照の問題ではありません。あなたのコントローラーControllerは、仮想UpdateModelメソッドを持っています。これにより、派生クラスでメソッドを呼び出すことができます。Controllerこのメソッドは、それ自体から継承する他の型およびそれ自体のインスタンスでのみ使用できますController。
Controller