LinqToSql static DataContext in a web application

后端 未结 5 1104
囚心锁ツ
囚心锁ツ 2021-01-02 12:14

In a web application that I have run across, I found the following code to deal with the DataContext when dealing with LinqToSQL

public partial class DbDataC         


        
5条回答
  •  生来不讨喜
    2021-01-02 12:37

    Also the context itself is not transactional so it is theoretically possible an update could occur on another request and your update could fail.

提交回复
热议问题