Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10635
Modified Files:
TestObjectMgr.cs
Log Message:
fix to compile on .net 1.0,1.1
Index: TestObjectMgr.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data/TestObjectMgr.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestObjectMgr.cs 21 Oct 2007 18:16:53 -0000 1.2
--- TestObjectMgr.cs 21 Oct 2007 18:32:41 -0000 1.3
***************
*** 22,26 ****
using System;
- using System.Transactions;
using Common.Logging;
using Spring.Objects;
--- 22,25 ----
***************
*** 66,78 ****
LOG.Debug("TransactionActive = " + TransactionSynchronizationManager.ActualTransactionActive);
}
!
[Transaction(TransactionPropagation.Required, IsolationLevel.Unspecified, Timeout = 50,
RollbackFor = new Type[]{typeof(ArgumentNullException)},
ReadOnly = false,
! #if NET_2_0
! EnterpriseServicesInteropOption = EnterpriseServicesInteropOption.Automatic,
#endif
- NoRollbackFor = new Type[]{typeof(ArithmeticException), typeof(NotSupportedException)})]
- //[Transaction()]
public void DeleteTwoTestObjects(string name1, string name2)
{
--- 65,80 ----
LOG.Debug("TransactionActive = " + TransactionSynchronizationManager.ActualTransactionActive);
}
! #if !NET_1_0 && !NET_1_1
[Transaction(TransactionPropagation.Required, IsolationLevel.Unspecified, Timeout = 50,
RollbackFor = new Type[]{typeof(ArgumentNullException)},
ReadOnly = false,
! EnterpriseServicesInteropOption = System.Transactions.EnterpriseServicesInteropOption.Automatic,
! NoRollbackFor = new Type[] { typeof(ArithmeticException), typeof(NotSupportedException) })]
! #else
! [Transaction(TransactionPropagation.Required, IsolationLevel.Unspecified, Timeout = 50,
! RollbackFor = new Type[]{typeof(ArgumentNullException)},
! ReadOnly = false,
! NoRollbackFor = new Type[] { typeof(ArithmeticException), typeof(NotSupportedException) })]
#endif
public void DeleteTwoTestObjects(string name1, string name2)
{
|