Remove SCLA Scoping
This commit is contained in:
@@ -600,7 +600,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("RoUsage.DataPortal_Fetch", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
protected override void DataPortal_Insert()
|
||||
{
|
||||
try
|
||||
@@ -625,7 +625,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RoUsage.DataPortal_Insert", GetHashCode());
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
internal void SQLInsert()
|
||||
{
|
||||
if (!IsDirty) return;
|
||||
@@ -678,7 +678,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("RoUsage.SQLInsert", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
public static byte[] Add(SqlConnection cn, ref int rOUsageID, Content myContent, string roid, string config, DateTime dts, string userID, RODb myRODb)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RoUsage.Add", 0);
|
||||
@@ -720,7 +720,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("RoUsage.Add", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
protected override void DataPortal_Update()
|
||||
{
|
||||
if (!IsDirty) return; // If not dirty - nothing to do
|
||||
@@ -743,7 +743,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (!ex.Message.EndsWith("has been edited by another user.")) throw ex;
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
internal void SQLUpdate()
|
||||
{
|
||||
if (!IsDirty) return; // If not dirty - nothing to do
|
||||
@@ -812,7 +812,7 @@ namespace VEPROMS.CSLA.Library
|
||||
MarkOld();
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
public static byte[] Update(SqlConnection cn, ref int rOUsageID, int contentID, string roid, string config, DateTime dts, string userID, ref byte[] lastChanged, int rODbID)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RoUsage.Update", 0);
|
||||
@@ -850,12 +850,12 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("RoUsage.Update", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
protected override void DataPortal_DeleteSelf()
|
||||
{
|
||||
DataPortal_Delete(new PKCriteria(_ROUsageID));
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
private void DataPortal_Delete(PKCriteria criteria)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RoUsage.DataPortal_Delete", GetHashCode());
|
||||
@@ -880,7 +880,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("RoUsage.DataPortal_Delete", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
public static void Remove(SqlConnection cn, int rOUsageID)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RoUsage.Remove", 0);
|
||||
|
||||
Reference in New Issue
Block a user