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.
3層アーキテクチャのWebアプリケーションを作成していますが、拡張メソッドを使用したいと思います。拡張メソッドをどのレイヤーに配置する必要がありますか?
ありがとう。
拡張メソッドは、それらを使用する任意のレイヤーに配置します。
拡張メソッドは、基本UIクラス、BLLクラス、および/またはDALクラスを拡張することができます。
それらを使用場所の近くに配置します。複数の場所で使用する場合は、ユーティリティまたはコアクラス/アセンブリに配置します。