Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17287
Modified Files:
ServiceDomainPlatformTransactionManager.cs
Log Message:
ifdef for mapping newer Snapshot isoation level mapping in ServiceDomainPlatformTransactionManager
Index: ServiceDomainPlatformTransactionManager.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core/ServiceDomainPlatformTransactionManager.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ServiceDomainPlatformTransactionManager.cs 30 Nov 2007 22:00:19 -0000 1.2
--- ServiceDomainPlatformTransactionManager.cs 1 Dec 2007 20:18:09 -0000 1.3
***************
*** 171,181 ****
serviceConfig.IsolationLevel = TransactionIsolationLevel.Serializable;
break;
case System.Data.IsolationLevel.Snapshot:
if (log.IsInfoEnabled)
{
! log.Info("IsolationLevel Snapshot does not have a direct counterpart in EnterpriseServices, using ReadUncommitted");
}
! serviceConfig.IsolationLevel = TransactionIsolationLevel.ReadUncommitted;
break;
case System.Data.IsolationLevel.Unspecified:
serviceConfig.IsolationLevel = TransactionIsolationLevel.Any;
--- 171,183 ----
serviceConfig.IsolationLevel = TransactionIsolationLevel.Serializable;
break;
+ #if NET_2_0
case System.Data.IsolationLevel.Snapshot:
if (log.IsInfoEnabled)
{
! log.Info("IsolationLevel Snapshot does not have a direct counterpart in EnterpriseServices, using ReadCommitted. Introduced in SqlServer 2005. Consider using System.Transactions for transaction management instead.");
}
! serviceConfig.IsolationLevel = TransactionIsolationLevel.ReadCommitted; //err on the side of consistency
break;
+ #endif
case System.Data.IsolationLevel.Unspecified:
serviceConfig.IsolationLevel = TransactionIsolationLevel.Any;
|