LINQ to SQL - where does your DataContext live?

后端 未结 4 1892
一整个雨季
一整个雨季 2020-12-04 22:29

I\'m using LINQ to SQL in a data access object library. The library is used in both web (web application/web service) and non-web (windows service) contexts. Initially, I st

4条回答
  •  天涯浪人
    2020-12-04 22:54

    I'm using httpcontext in web scenarios and thread context for everything else. We built a little framework so that the data context would be completely abstracted from the presentation/business tier.

提交回复
热议问题