Does transaction with static LINQ to SQL DataContext support in asp.net?

I have an ASP.NET application that is connected to a SQL server using LINQ to SQL. If I have a static class, it will certainly work at the application level. Where, how I created a static object DataContextin this static class. I did not create a data context object in the application other than this. Where, when I use this static data object object for each database manipulation.

So will it support the transaction as thread safe for each registered user?

+1
source share
2 answers

. O/RM , , Entity Framework ObjectContext, DbContext, NHibernate Session LINQ to SQL DataContext.

LINQ to SQL DataContext . ( ) 1 -. , SubmitChanges, . , DataContext , . , DataContext , , . : , !

, DataContext , , , OutOfMemoryException (OOM). OOM, , , , . , , , , DataContext, , ( - ) DataContext (- ), ( DataContext). AppDomain .

+9

All Articles