Remove SCLA Scoping
This commit is contained in:
@@ -742,7 +742,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("Document.DataPortal_Fetch", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
protected override void DataPortal_Insert()
|
||||
{
|
||||
try
|
||||
@@ -767,7 +767,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Document.DataPortal_Insert", GetHashCode());
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
internal void SQLInsert()
|
||||
{
|
||||
if (!IsDirty) return;
|
||||
@@ -822,7 +822,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("Document.SQLInsert", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
public static byte[] Add(SqlConnection cn, ref int docID, string libTitle, byte[] docContent, string docAscii, string config, DateTime dts, string userID, string fileExtension)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Document.Add", 0);
|
||||
@@ -865,7 +865,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("Document.Add", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
protected override void DataPortal_Update()
|
||||
{
|
||||
if (!IsDirty) return; // If not dirty - nothing to do
|
||||
@@ -888,7 +888,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
|
||||
@@ -962,7 +962,7 @@ namespace VEPROMS.CSLA.Library
|
||||
_DocumentDROUsages?.Update(this);
|
||||
_DocumentPdfs?.Update(this);
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
public static byte[] Update(SqlConnection cn, ref int docID, string libTitle, byte[] docContent, string docAscii, string config, DateTime dts, string userID, ref byte[] lastChanged, string fileExtension)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Document.Update", 0);
|
||||
@@ -1001,9 +1001,9 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("Document.Update", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_DocID));
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
private void DataPortal_Delete(PKCriteria criteria)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Document.DataPortal_Delete", GetHashCode());
|
||||
@@ -1028,7 +1028,7 @@ namespace VEPROMS.CSLA.Library
|
||||
throw new DbCslaException("Document.DataPortal_Delete", ex);
|
||||
}
|
||||
}
|
||||
[Transactional(TransactionalTypes.TransactionScope)]
|
||||
|
||||
public static void Remove(SqlConnection cn, int docID)
|
||||
{
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Document.Remove", 0);
|
||||
|
||||
Reference in New Issue
Block a user