DLL context Switching

Last post 11-19-2008 2:05 AM by Thomas Sun – MSFT. 1 replies.

Sort Posts:

  • DLL context Switching

    11-17-2008, 1:38 AM
    • Member
      37 point Member
    • shoaibbinaslam
    • Member since 08-09-2006, 2:09 PM
    • Dubai, UAE
    • Posts 15

    Hello,

    I am working in 3 layer application, DataLayer, BusniessLogic and Website itself. I have DataLayer and Businesslogic Project as Class libraries Project and i am using these dll in website project.

    My Question is. Is it efficiency matters having seperate dll of each  project or better to put all in code in app_code Folder.

    or May be App_code have any limit for size.

    Please Guide me what are the things kept in mind in these case.

     

     

    Best Regards
    Shoaib Bin Aslam
    Web Developer
    Tejari FZ-LLC,Dubai, UAE

    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: DLL context Switching

    11-19-2008, 2:05 AM
    Answer

    Hi,

    When we use Publish utility to deploy the website, the classes in App_Code will be compiled into dll and be placed in Bin folder. So I think it is few differences with using external Class Library while running it on server.

    But there are many differences in development, reusable, team work, etc. For example, if we put all the classes in the App_Code folder, this will enhance compiling time, instead, using separate Class Library will improve build performance.

    Commonly, if it is small website (simple operation on Database), we can put all classes in the App_Code; if it has many functions in DataAccess and Business, we will use Class Library. So you can choose which manner basing on your requirements.

    You also can refer to http://weblogs.asp.net/bradleyb/archive/2005/12/06/432441.aspx

     

     I look forward to hearing from you.

     

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (2 items)