I am creating a 3 tier architecture web application, and I want to use extension methods. In which layer should I place the extension methods?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You place extension methods at any layer that uses them.
Extension methods can be extending base UI classes, BLL classes and/or DAL classes.
You place them near where they are used – if they are to be used in several places, you place them in a utility or core class/assembly.