Singleton pattern in web applications

前端 未结 5 1157
萌比男神i
萌比男神i 2021-02-05 21:46

I\'m using a singleton pattern for the datacontext in my web application so that I dont have to instantiate it every time, however I\'m not sure how web applications work, does

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 22:17

    here are Microsoft's examples on how to do multi-tier with LINQ-To-SQL.

    http://code.msdn.microsoft.com/multitierlinqtosql

提交回复
热议问题