diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/AnnotationExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/AnnotationExt.cs index 30b890e5..727c02d6 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/AnnotationExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/AnnotationExt.cs @@ -283,7 +283,7 @@ namespace VEPROMS.CSLA.Library _UserID = userID; } } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(DeleteCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.DataPortal_Delete", GetHashCode()); @@ -324,7 +324,7 @@ namespace VEPROMS.CSLA.Library _procList = procList; } } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(DeleteAnnotationProcByTypeCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.DataPortal_Delete", GetHashCode()); @@ -365,7 +365,7 @@ namespace VEPROMS.CSLA.Library _versionID = versionID; } } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(DeleteAnnotationDocvByTypeCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Delete Annotations by Type Docv", GetHashCode()); @@ -420,7 +420,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + private getAnnotationCountProcCriteria DataPortal_Fetch(getAnnotationCountProcCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.DataPortal_Fetch", GetHashCode()); @@ -477,7 +477,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + private getAnnotationCountDocvCriteria DataPortal_Fetch(getAnnotationCountDocvCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Annotation.DataPortal_Fetch", GetHashCode()); diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs index b87ab97e..7b83940b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -2388,7 +2388,7 @@ namespace VEPROMS.CSLA.Library _UserID = userID; } } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(DeleteCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.DataPortal_Delete", GetHashCode()); diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs index 4d9fdbaf..77ddb94f 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/PdfExt.cs @@ -25,7 +25,7 @@ namespace VEPROMS.CSLA.Library public int DocID => _DocID; public DocIDCriteria(int docID) => _DocID = docID; } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(DocIDCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Pdf.DataPortal_Delete", GetHashCode()); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Annotation.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Annotation.cs index 530ad9ab..d4f4a5bc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Annotation.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Annotation.cs @@ -610,7 +610,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Annotation.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -635,7 +635,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Annotation.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -689,7 +689,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Annotation.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int annotationID, Item myItem, AnnotationType myAnnotationType, string rtfText, string searchText, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Annotation.Add", 0); @@ -732,7 +732,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Annotation.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -755,7 +755,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 @@ -825,7 +825,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int annotationID, int itemID, int typeID, string rtfText, string searchText, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Annotation.Update", 0); @@ -864,12 +864,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Annotation.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AnnotationID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Annotation.DataPortal_Delete", GetHashCode()); @@ -894,7 +894,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Annotation.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int annotationID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Annotation.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationAudit.cs index 7eeac71b..28928841 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationAudit.cs @@ -555,7 +555,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -580,7 +580,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -628,7 +628,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int annotationID, int itemID, int typeID, string rtfText, string searchText, string config, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationAudit.Add", 0); @@ -668,7 +668,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -691,7 +691,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 @@ -754,7 +754,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int annotationID, int itemID, int typeID, string rtfText, string searchText, string config, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationAudit.Update", 0); @@ -789,12 +789,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationAudit.DataPortal_Delete", GetHashCode()); @@ -819,7 +819,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationType.cs b/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationType.cs index e6c61351..f6f225b5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationType.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/AnnotationType.cs @@ -691,7 +691,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationType.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -716,7 +716,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationType.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -766,7 +766,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationType.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int typeID, string name, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationType.Add", 0); @@ -806,7 +806,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationType.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -829,7 +829,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 @@ -896,7 +896,7 @@ namespace VEPROMS.CSLA.Library } _AnnotationTypeAnnotations?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int typeID, string name, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationType.Update", 0); @@ -932,9 +932,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationType.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_TypeID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationType.DataPortal_Delete", GetHashCode()); @@ -959,7 +959,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("AnnotationType.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int typeID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] AnnotationType.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Assignment.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Assignment.cs index 111e0c5e..7c3b7c46 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Assignment.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Assignment.cs @@ -667,7 +667,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Assignment.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -692,7 +692,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Assignment.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -747,7 +747,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Assignment.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int aid, Group myGroup, Role myRole, Folder myFolder, SmartDate startDate, SmartDate endDate, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Assignment.Add", 0); @@ -790,7 +790,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Assignment.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -813,7 +813,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 @@ -884,7 +884,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int aid, int gid, int rid, int folderID, SmartDate startDate, SmartDate endDate, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Assignment.Update", 0); @@ -923,9 +923,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Assignment.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_AID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Assignment.DataPortal_Delete", GetHashCode()); @@ -950,7 +950,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Assignment.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int aid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Assignment.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Association.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Association.cs index a03cd082..5b4671b9 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Association.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Association.cs @@ -648,7 +648,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Association.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -673,7 +673,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Association.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -725,7 +725,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Association.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int associationID, DocVersion myDocVersion, ROFst myROFst, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Association.Add", 0); @@ -766,7 +766,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Association.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -789,7 +789,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 @@ -857,7 +857,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int associationID, int versionID, int rOFstID, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Association.Update", 0); @@ -894,9 +894,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Association.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_AssociationID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Association.DataPortal_Delete", GetHashCode()); @@ -921,7 +921,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Association.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int associationID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Association.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Check.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Check.cs index 5b2e3a69..797a0d8b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Check.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Check.cs @@ -567,7 +567,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Check.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -592,7 +592,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Check.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -644,7 +644,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Check.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int checkID, Revision myRevision, Stage myStage, string consistencyChecks, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Check.Add", 0); @@ -685,7 +685,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Check.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -708,7 +708,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 @@ -776,7 +776,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int checkID, int revisionID, int stageID, string consistencyChecks, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Check.Update", 0); @@ -813,9 +813,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Check.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_CheckID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Check.DataPortal_Delete", GetHashCode()); @@ -840,7 +840,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Check.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int checkID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Check.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Connection.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Connection.cs index 19dea686..0c5bd7a8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Connection.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Connection.cs @@ -705,7 +705,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Connection.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -730,7 +730,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Connection.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -783,7 +783,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Connection.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int dbid, string name, string title, string connectionString, int serverType, string config, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Connection.Add", 0); @@ -826,7 +826,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Connection.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -849,7 +849,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 @@ -919,7 +919,7 @@ namespace VEPROMS.CSLA.Library } _ConnectionFolders?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int dbid, string name, string title, string connectionString, int serverType, string config, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Connection.Update", 0); @@ -958,12 +958,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Connection.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_DBID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Connection.DataPortal_Delete", GetHashCode()); @@ -988,7 +988,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Connection.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int dbid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Connection.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Content.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Content.cs index 764a1005..1b4c76fb 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Content.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Content.cs @@ -1037,7 +1037,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Content.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -1062,7 +1062,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Content.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -1124,7 +1124,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Content.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int contentID, string number, string text, int? type, Format myFormat, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Content.Add", 0); @@ -1167,7 +1167,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Content.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -1190,7 +1190,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 @@ -1278,7 +1278,7 @@ namespace VEPROMS.CSLA.Library _ContentTransitions?.Update(this); _MyZContent?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int contentID, string number, string text, int? type, int? formatID, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Content.Update", 0); @@ -1317,9 +1317,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Content.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_ContentID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Content.DataPortal_Delete", GetHashCode()); @@ -1344,7 +1344,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Content.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int contentID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Content.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ContentAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ContentAudit.cs index d476ee83..2baaaa7b 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ContentAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ContentAudit.cs @@ -569,7 +569,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ContentAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -594,7 +594,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ContentAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -642,7 +642,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ContentAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int contentID, string number, string text, int? type, int? formatID, string config, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ContentAudit.Add", 0); @@ -682,7 +682,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ContentAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -705,7 +705,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 @@ -768,7 +768,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int contentID, string number, string text, int? type, int? formatID, string config, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ContentAudit.Update", 0); @@ -803,12 +803,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ContentAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ContentAudit.DataPortal_Delete", GetHashCode()); @@ -833,7 +833,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ContentAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ContentAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/DROUsage.cs b/PROMS/VEPROMS.CSLA.Library/Generated/DROUsage.cs index e2d1a3d6..24c5cfa6 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/DROUsage.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/DROUsage.cs @@ -610,7 +610,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DROUsage.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -635,7 +635,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DROUsage.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -688,7 +688,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DROUsage.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int dROUsageID, Document myDocument, string roid, string config, DateTime dts, string userID, RODb myRODb) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DROUsage.Add", 0); @@ -730,7 +730,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DROUsage.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -753,7 +753,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 @@ -822,7 +822,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int dROUsageID, int docID, string roid, string config, DateTime dts, string userID, ref byte[] lastChanged, int rODbID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DROUsage.Update", 0); @@ -860,9 +860,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DROUsage.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_DROUsageID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DROUsage.DataPortal_Delete", GetHashCode()); @@ -887,7 +887,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DROUsage.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int dROUsageID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DROUsage.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Detail.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Detail.cs index e5145619..de14f08f 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Detail.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Detail.cs @@ -580,7 +580,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Detail.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -605,7 +605,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Detail.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -657,7 +657,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Detail.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int detailID, Content myContent, int itemType, string text, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Detail.Add", 0); @@ -699,7 +699,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Detail.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -722,7 +722,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 @@ -790,7 +790,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int detailID, int contentID, int itemType, string text, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Detail.Update", 0); @@ -828,12 +828,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Detail.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_DetailID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Detail.DataPortal_Delete", GetHashCode()); @@ -858,7 +858,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Detail.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int detailID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Detail.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/DocVersion.cs b/PROMS/VEPROMS.CSLA.Library/Generated/DocVersion.cs index b829674b..04130c74 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/DocVersion.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/DocVersion.cs @@ -732,7 +732,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocVersion.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -757,7 +757,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocVersion.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -815,7 +815,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocVersion.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int versionID, Folder myFolder, int versionType, string name, string title, Item myItem, Format myFormat, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocVersion.Add", 0); @@ -860,7 +860,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocVersion.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -883,7 +883,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 @@ -958,7 +958,7 @@ namespace VEPROMS.CSLA.Library } _DocVersionAssociations?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int versionID, int folderID, int versionType, string name, string title, int? itemID, int? formatID, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocVersion.Update", 0); @@ -999,12 +999,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocVersion.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_VersionID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocVersion.DataPortal_Delete", GetHashCode()); @@ -1029,7 +1029,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocVersion.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int versionID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocVersion.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Document.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Document.cs index 20cbd7ea..d8e429b9 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Document.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Document.cs @@ -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); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/DocumentAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/DocumentAudit.cs index 2b777b54..068f18c5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/DocumentAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/DocumentAudit.cs @@ -596,7 +596,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocumentAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -621,7 +621,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocumentAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -670,7 +670,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocumentAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int docID, string libTitle, byte[] docContent, string docAscii, string config, DateTime dts, string userID, string fileExtension, byte[] docPdf, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocumentAudit.Add", 0); @@ -711,7 +711,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocumentAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -734,7 +734,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 @@ -798,7 +798,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int docID, string libTitle, byte[] docContent, string docAscii, string config, DateTime dts, string userID, string fileExtension, byte[] docPdf, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocumentAudit.Update", 0); @@ -834,9 +834,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocumentAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_AuditID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocumentAudit.DataPortal_Delete", GetHashCode()); @@ -861,7 +861,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("DocumentAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] DocumentAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Entry.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Entry.cs index 17a1d8a0..825f6956 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Entry.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Entry.cs @@ -525,7 +525,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Entry.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -550,7 +550,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Entry.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -594,7 +594,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Entry.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Content myContent, Document myDocument, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Entry.Add", 0); @@ -628,7 +628,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Entry.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -651,7 +651,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 @@ -724,7 +724,7 @@ namespace VEPROMS.CSLA.Library } } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int contentID, int docID, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Entry.Update", 0); @@ -759,9 +759,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Entry.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_ContentID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Entry.DataPortal_Delete", GetHashCode()); @@ -786,7 +786,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Entry.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int contentID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Entry.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/EntryAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/EntryAudit.cs index b9857e54..bce7425e 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/EntryAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/EntryAudit.cs @@ -471,7 +471,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("EntryAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -496,7 +496,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] EntryAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -540,7 +540,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("EntryAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int contentID, int docID, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] EntryAudit.Add", 0); @@ -576,7 +576,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("EntryAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -599,7 +599,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 @@ -658,7 +658,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int contentID, int docID, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] EntryAudit.Update", 0); @@ -689,12 +689,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("EntryAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] EntryAudit.DataPortal_Delete", GetHashCode()); @@ -719,7 +719,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("EntryAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] EntryAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Figure.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Figure.cs index 247ba2da..7ba5d181 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Figure.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Figure.cs @@ -674,7 +674,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Figure.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -699,7 +699,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Figure.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -751,7 +751,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Figure.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int figureID, ROFst myROFst, ROImage myROImage, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Figure.Add", 0); @@ -792,7 +792,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Figure.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -815,7 +815,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 @@ -883,7 +883,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int figureID, int rOFstID, int imageID, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Figure.Update", 0); @@ -920,12 +920,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Figure.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_FigureID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Figure.DataPortal_Delete", GetHashCode()); @@ -950,7 +950,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Figure.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int figureID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Figure.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Folder.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Folder.cs index c361ce27..b8832359 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Folder.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Folder.cs @@ -983,7 +983,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Folder.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -1008,7 +1008,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Folder.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -1068,7 +1068,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Folder.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int folderID, Folder myParent, Connection myConnection, string name, string title, string shortName, Format myFormat, double? manualOrder, string config, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Folder.Add", 0); @@ -1114,7 +1114,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Folder.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -1139,7 +1139,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 @@ -1235,7 +1235,7 @@ namespace VEPROMS.CSLA.Library MarkNew(); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int folderID, int parentID, int dbid, string name, string title, string shortName, int? formatID, double? manualOrder, string config, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Folder.Update", 0); @@ -1277,9 +1277,9 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Folder.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() => DataPortal_Delete(new PKCriteria(_FolderID)); - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Folder.DataPortal_Delete", GetHashCode()); @@ -1304,7 +1304,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Folder.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int folderID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Folder.Remove", 0); @@ -1328,7 +1328,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void DeleteFolderAdmin(int folderID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Folder.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Format.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Format.cs index 575ed630..e7824e95 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Format.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Format.cs @@ -950,7 +950,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Format.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -975,7 +975,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Format.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -1032,7 +1032,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Format.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int formatID, Format myParent, string name, string description, string data, string config, string genMac, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Format.Add", 0); @@ -1076,7 +1076,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Format.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -1099,7 +1099,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 @@ -1191,7 +1191,7 @@ namespace VEPROMS.CSLA.Library MarkNew(); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int formatID, int parentID, string name, string description, string data, string config, string genMac, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Format.Update", 0); @@ -1231,12 +1231,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Format.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_FormatID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Format.DataPortal_Delete", GetHashCode()); @@ -1261,7 +1261,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Format.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int formatID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Format.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Grid.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Grid.cs index bb4d3634..15c6bb45 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Grid.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Grid.cs @@ -515,7 +515,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Grid.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -540,7 +540,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Grid.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -584,7 +584,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Grid.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Content myContent, string data, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Grid.Add", 0); @@ -619,7 +619,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Grid.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -642,7 +642,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 @@ -707,7 +707,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int contentID, string data, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Grid.Update", 0); @@ -743,12 +743,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Grid.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ContentID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Grid.DataPortal_Delete", GetHashCode()); @@ -773,7 +773,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Grid.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int contentID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Grid.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/GridAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/GridAudit.cs index d682fd84..c89e34f5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/GridAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/GridAudit.cs @@ -558,7 +558,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("GridAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -583,7 +583,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GridAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -629,7 +629,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("GridAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int contentID, string data, string config, DateTime dts, string userID, int deleteStatus, long contentAuditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GridAudit.Add", 0); @@ -667,7 +667,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("GridAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -690,7 +690,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 @@ -751,7 +751,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int contentID, string data, string config, DateTime dts, string userID, int deleteStatus, long contentAuditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GridAudit.Update", 0); @@ -784,12 +784,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("GridAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GridAudit.DataPortal_Delete", GetHashCode()); @@ -814,7 +814,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("GridAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GridAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Group.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Group.cs index d68d68a1..35f5e252 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Group.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Group.cs @@ -724,7 +724,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Group.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -749,7 +749,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Group.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -801,7 +801,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Group.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int gid, string groupName, int? groupType, string config, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Group.Add", 0); @@ -842,7 +842,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Group.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -865,7 +865,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 @@ -935,7 +935,7 @@ namespace VEPROMS.CSLA.Library _GroupAssignments?.Update(this); _GroupMemberships?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int gid, string groupName, int? groupType, string config, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Group.Update", 0); @@ -972,12 +972,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Group.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_GID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Group.DataPortal_Delete", GetHashCode()); @@ -1002,7 +1002,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Group.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int gid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Group.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Image.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Image.cs index 26a64c9f..188c7100 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Image.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Image.cs @@ -562,7 +562,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Image.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -587,7 +587,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Image.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -633,7 +633,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Image.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Content myContent, int imageType, string fileName, byte[] data, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Image.Add", 0); @@ -670,7 +670,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Image.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -693,7 +693,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 @@ -760,7 +760,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int contentID, int imageType, string fileName, byte[] data, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Image.Update", 0); @@ -798,12 +798,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Image.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ContentID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Image.DataPortal_Delete", GetHashCode()); @@ -828,7 +828,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Image.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int contentID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Image.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ImageAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ImageAudit.cs index bae7e391..c66a265d 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ImageAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ImageAudit.cs @@ -550,7 +550,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ImageAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -575,7 +575,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ImageAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -622,7 +622,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ImageAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int contentID, int imageType, string fileName, byte[] data, string config, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ImageAudit.Add", 0); @@ -661,7 +661,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ImageAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -684,7 +684,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 @@ -746,7 +746,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int contentID, int imageType, string fileName, byte[] data, string config, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ImageAudit.Update", 0); @@ -780,12 +780,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ImageAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ImageAudit.DataPortal_Delete", GetHashCode()); @@ -810,7 +810,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ImageAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ImageAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Item.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Item.cs index 8864c69a..adb29028 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Item.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Item.cs @@ -864,7 +864,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Item.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -889,7 +889,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -945,7 +945,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Item.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int itemID, Item myPrevious, Content myContent, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.Add", 0); @@ -1065,7 +1065,7 @@ namespace VEPROMS.CSLA.Library } } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -1088,7 +1088,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 @@ -1181,7 +1181,7 @@ namespace VEPROMS.CSLA.Library MarkNew(); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int itemID, int? previousID, int contentID, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.Update", 0); @@ -1217,12 +1217,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Item.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ItemID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.DataPortal_Delete", GetHashCode()); @@ -1247,7 +1247,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Item.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int itemID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Item.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ItemAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ItemAudit.cs index 0381f8fc..ddd79eab 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ItemAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ItemAudit.cs @@ -498,7 +498,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ItemAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -523,7 +523,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -568,7 +568,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ItemAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int itemID, int? previousID, int contentID, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemAudit.Add", 0); @@ -605,7 +605,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ItemAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -628,7 +628,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 @@ -688,7 +688,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int itemID, int? previousID, int contentID, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemAudit.Update", 0); @@ -720,12 +720,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ItemAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemAudit.DataPortal_Delete", GetHashCode()); @@ -750,7 +750,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ItemAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Membership.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Membership.cs index 4f74def6..d3284c41 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Membership.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Membership.cs @@ -671,7 +671,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Membership.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -696,7 +696,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Membership.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -750,7 +750,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Membership.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int ugid, User myUser, Group myGroup, SmartDate startDate, SmartDate endDate, string config, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Membership.Add", 0); @@ -793,7 +793,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Membership.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -816,7 +816,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 @@ -886,7 +886,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int ugid, int uid, int gid, SmartDate startDate, SmartDate endDate, string config, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Membership.Update", 0); @@ -925,12 +925,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Membership.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_UGID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Membership.DataPortal_Delete", GetHashCode()); @@ -955,7 +955,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Membership.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int ugid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Membership.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Owner.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Owner.cs index 5d82dc71..6a1bcedc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Owner.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Owner.cs @@ -447,7 +447,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Owner.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -472,7 +472,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Owner.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -521,7 +521,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Owner.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int ownerID, int sessionID, byte ownerType, int ownerItemID, DateTime dTSStart) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Owner.Add", 0); @@ -561,7 +561,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Owner.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -584,7 +584,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 @@ -649,7 +649,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int ownerID, int sessionID, byte ownerType, int ownerItemID, DateTime dTSStart, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Owner.Update", 0); @@ -685,12 +685,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Owner.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_OwnerID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Owner.DataPortal_Delete", GetHashCode()); @@ -715,7 +715,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Owner.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int ownerID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Owner.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Part.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Part.cs index f04b4270..81ed5f7c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Part.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Part.cs @@ -532,7 +532,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Part.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -557,7 +557,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Part.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -603,7 +603,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Part.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Content myContent, int fromType, Item myItem, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Part.Add", 0); @@ -638,7 +638,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Part.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -661,7 +661,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 @@ -728,7 +728,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int contentID, int fromType, int itemID, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Part.Update", 0); @@ -764,12 +764,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Part.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ContentID, _FromType)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Part.DataPortal_Delete", GetHashCode()); @@ -795,7 +795,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Part.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int contentID, int fromType) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Part.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/PartAudit.cs b/PROMS/VEPROMS.CSLA.Library/Generated/PartAudit.cs index 3ea84cf0..979e8ce3 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/PartAudit.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/PartAudit.cs @@ -491,7 +491,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("PartAudit.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -516,7 +516,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] PartAudit.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -561,7 +561,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("PartAudit.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Add(SqlConnection cn, ref long auditID, int contentID, int fromType, int itemID, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] PartAudit.Add", 0); @@ -598,7 +598,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("PartAudit.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -621,7 +621,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 @@ -681,7 +681,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Update(SqlConnection cn, ref long auditID, int contentID, int fromType, int itemID, DateTime dts, string userID, int deleteStatus) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] PartAudit.Update", 0); @@ -713,12 +713,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("PartAudit.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_AuditID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] PartAudit.DataPortal_Delete", GetHashCode()); @@ -743,7 +743,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("PartAudit.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, long auditID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] PartAudit.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Pdf.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Pdf.cs index df3aeabc..58d8fd40 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Pdf.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Pdf.cs @@ -625,7 +625,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Pdf.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -650,7 +650,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Pdf.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -700,7 +700,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Pdf.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Document myDocument, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth, double pageCount, byte[] docPdf, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Pdf.Add", 0); @@ -740,7 +740,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Pdf.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -763,7 +763,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 @@ -834,7 +834,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int docID, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth, double pageCount, byte[] docPdf, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Pdf.Update", 0); @@ -875,12 +875,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Pdf.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_DocID, _DebugStatus, _TopRow, _PageLength, _LeftMargin, _PageWidth)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Pdf.DataPortal_Delete", GetHashCode()); @@ -910,7 +910,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Pdf.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int docID, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Pdf.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Permission.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Permission.cs index 3936daa1..06a14176 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Permission.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Permission.cs @@ -721,7 +721,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Permission.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -746,7 +746,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Permission.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -802,7 +802,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Permission.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int pid, Role myRole, int permLevel, int versionType, int permValue, int permAD, SmartDate startDate, SmartDate endDate, string config, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Permission.Add", 0); @@ -848,7 +848,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Permission.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -871,7 +871,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 @@ -943,7 +943,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int pid, int rid, int permLevel, int versionType, int permValue, int permAD, SmartDate startDate, SmartDate endDate, string config, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Permission.Update", 0); @@ -985,12 +985,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Permission.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_PID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Permission.DataPortal_Delete", GetHashCode()); @@ -1015,7 +1015,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Permission.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int pid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Permission.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/RODb.cs b/PROMS/VEPROMS.CSLA.Library/Generated/RODb.cs index 3b143733..f6fbe1e1 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/RODb.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/RODb.cs @@ -868,7 +868,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("RODb.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -893,7 +893,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RODb.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -948,7 +948,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("RODb.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int rODbID, string rOName, string folderPath, string dBConnectionString, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RODb.Add", 0); @@ -990,7 +990,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("RODb.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -1013,7 +1013,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 @@ -1088,7 +1088,7 @@ namespace VEPROMS.CSLA.Library _RODbROFsts?.Update(this); _RODbROImages?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int rODbID, string rOName, string folderPath, string dBConnectionString, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RODb.Update", 0); @@ -1126,12 +1126,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("RODb.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_RODbID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RODb.DataPortal_Delete", GetHashCode()); @@ -1156,7 +1156,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("RODb.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int rODbID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] RODb.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ROFst.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ROFst.cs index 06d2f6ba..6812ae24 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ROFst.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ROFst.cs @@ -807,7 +807,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -833,7 +833,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -893,7 +893,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int rOFstID, RODb myRODb, byte[] rOLookup, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROFst.Add", 0); @@ -941,7 +941,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -965,7 +965,7 @@ namespace VEPROMS.CSLA.Library } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLUpdate() { if (!IsDirty) return; // If not dirty - nothing to do @@ -1041,7 +1041,7 @@ namespace VEPROMS.CSLA.Library _ROFstFigures?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int rOFstID, int rODbID, byte[] rOLookup, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROFst.Update", 0); @@ -1085,12 +1085,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROFst.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ROFstID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROFst.DataPortal_Delete", GetHashCode()); @@ -1115,7 +1115,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROFst.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int rOFstID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROFst.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ROImage.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ROImage.cs index 7e4c3f14..081505fc 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ROImage.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ROImage.cs @@ -798,7 +798,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROImage.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -823,7 +823,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROImage.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -876,7 +876,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROImage.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int imageID, RODb myRODb, string fileName, byte[] content, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROImage.Add", 0); @@ -918,7 +918,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROImage.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -941,7 +941,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 @@ -1011,7 +1011,7 @@ namespace VEPROMS.CSLA.Library } _ROImageFigures?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int imageID, int rODbID, string fileName, byte[] content, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROImage.Update", 0); @@ -1049,12 +1049,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROImage.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ImageID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROImage.DataPortal_Delete", GetHashCode()); @@ -1079,7 +1079,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ROImage.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int imageID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ROImage.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Revision.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Revision.cs index 8ecb563c..3d4132fd 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Revision.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Revision.cs @@ -701,7 +701,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Revision.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -726,7 +726,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Revision.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -781,7 +781,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Revision.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int revisionID, int itemID, int typeID, string revisionNumber, DateTime? revisionDate, string notes, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Revision.Add", 0); @@ -825,7 +825,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Revision.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -848,7 +848,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 @@ -921,7 +921,7 @@ namespace VEPROMS.CSLA.Library _RevisionChecks?.Update(this); _RevisionVersions?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int revisionID, int itemID, int typeID, string revisionNumber, DateTime? revisionDate, string notes, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Revision.Update", 0); @@ -961,12 +961,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Revision.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_RevisionID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Revision.DataPortal_Delete", GetHashCode()); @@ -991,7 +991,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Revision.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int revisionID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Revision.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/RoUsage.cs b/PROMS/VEPROMS.CSLA.Library/Generated/RoUsage.cs index 55469ef8..28d47aea 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/RoUsage.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/RoUsage.cs @@ -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); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Role.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Role.cs index b151bc23..410241e8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Role.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Role.cs @@ -699,7 +699,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Role.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -724,7 +724,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Role.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -775,7 +775,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Role.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int rid, string name, string title, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Role.Add", 0); @@ -815,7 +815,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Role.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -838,7 +838,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 @@ -907,7 +907,7 @@ namespace VEPROMS.CSLA.Library _RoleAssignments?.Update(this); _RolePermissions?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int rid, string name, string title, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Role.Update", 0); @@ -943,12 +943,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Role.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_RID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Role.DataPortal_Delete", GetHashCode()); @@ -973,7 +973,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Role.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int rid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Role.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Session.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Session.cs index 2ffb4e0d..95103f02 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Session.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Session.cs @@ -525,7 +525,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Session.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -550,7 +550,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Session.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -601,7 +601,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Session.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int sessionID, string userID, DateTime dTSDtart, DateTime? dTSEnd, DateTime dTSActivity, string machineName, int processID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Session.Add", 0); @@ -643,7 +643,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Session.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -666,7 +666,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 @@ -733,7 +733,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int sessionID, string userID, DateTime dTSDtart, DateTime? dTSEnd, DateTime dTSActivity, ref byte[] lastChanged, string machineName, int processID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Session.Update", 0); @@ -771,12 +771,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Session.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_SessionID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Session.DataPortal_Delete", GetHashCode()); @@ -801,7 +801,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Session.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int sessionID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Session.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Stage.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Stage.cs index 695029f5..bd1928e9 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Stage.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Stage.cs @@ -632,7 +632,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Stage.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -657,7 +657,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Stage.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -709,7 +709,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Stage.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int stageID, string name, string description, int isApproved, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Stage.Add", 0); @@ -750,7 +750,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Stage.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -773,7 +773,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 @@ -843,7 +843,7 @@ namespace VEPROMS.CSLA.Library _StageChecks?.Update(this); _StageVersions?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int stageID, string name, string description, int isApproved, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Stage.Update", 0); @@ -880,12 +880,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Stage.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_StageID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Stage.DataPortal_Delete", GetHashCode()); @@ -910,7 +910,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Stage.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int stageID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Stage.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Transition.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Transition.cs index 28282172..bc4d5db8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Transition.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Transition.cs @@ -708,7 +708,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Transition.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -733,7 +733,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Transition.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -790,7 +790,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Transition.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int transitionID, Content myContent, Item myItemToID, Item myItemRangeID, int isRange, int tranType, string config, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Transition.Add", 0); @@ -834,7 +834,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Transition.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -857,7 +857,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 @@ -931,7 +931,7 @@ namespace VEPROMS.CSLA.Library } _MyZTransition?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int transitionID, int fromID, int toID, int rangeID, int isRange, int tranType, string config, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Transition.Update", 0); @@ -971,12 +971,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Transition.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_TransitionID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Transition.DataPortal_Delete", GetHashCode()); @@ -1001,7 +1001,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Transition.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int transitionID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Transition.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/User.cs b/PROMS/VEPROMS.CSLA.Library/Generated/User.cs index 19607907..74aad0b1 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/User.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/User.cs @@ -780,7 +780,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("User.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -805,7 +805,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] User.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -864,7 +864,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("User.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int uid, string userID, string firstName, string middleName, string lastName, string suffix, string courtesyTitle, string phoneNumber, string cFGName, string userLogin, string userName, string config, DateTime dts, string usrID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] User.Add", 0); @@ -913,7 +913,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("User.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -936,7 +936,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 @@ -1012,7 +1012,7 @@ namespace VEPROMS.CSLA.Library } _UserMemberships?.Update(this); } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int uid, string userID, string firstName, string middleName, string lastName, string suffix, string courtesyTitle, string phoneNumber, string cFGName, string userLogin, string userName, string config, DateTime dts, string usrID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] User.Update", 0); @@ -1057,12 +1057,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("User.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_UID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] User.DataPortal_Delete", GetHashCode()); @@ -1087,7 +1087,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("User.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int uid) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] User.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/Version.cs b/PROMS/VEPROMS.CSLA.Library/Generated/Version.cs index 4335fa0b..cd6dd195 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/Version.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/Version.cs @@ -584,7 +584,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Version.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -609,7 +609,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Version.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -663,7 +663,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Version.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, ref int versionID, Revision myRevision, Stage myStage, byte[] pdf, byte[] summaryPDF, string approvedXML, DateTime dts, string userID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Version.Add", 0); @@ -706,7 +706,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Version.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -729,7 +729,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 @@ -799,7 +799,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, ref int versionID, int revisionID, int stageID, byte[] pdf, byte[] summaryPDF, string approvedXML, DateTime dts, string userID, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Version.Update", 0); @@ -838,12 +838,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Version.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_VersionID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Version.DataPortal_Delete", GetHashCode()); @@ -868,7 +868,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("Version.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int versionID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] Version.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ZContent.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ZContent.cs index 25f4ac70..d6a297b4 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ZContent.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ZContent.cs @@ -415,7 +415,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZContent.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -440,7 +440,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZContent.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -481,7 +481,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZContent.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Content myContent, string oldStepSequence) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZContent.Add", 0); @@ -513,7 +513,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZContent.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -536,7 +536,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 @@ -598,7 +598,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int contentID, string oldStepSequence, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZContent.Update", 0); @@ -631,12 +631,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZContent.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_ContentID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZContent.DataPortal_Delete", GetHashCode()); @@ -661,7 +661,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZContent.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int contentID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZContent.Remove", 0); diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ZTransition.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ZTransition.cs index 125f339c..c4ebf909 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ZTransition.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ZTransition.cs @@ -412,7 +412,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZTransition.DataPortal_Fetch", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Insert() { try @@ -437,7 +437,7 @@ namespace VEPROMS.CSLA.Library if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZTransition.DataPortal_Insert", GetHashCode()); } } - [Transactional(TransactionalTypes.TransactionScope)] + internal void SQLInsert() { if (!IsDirty) return; @@ -478,7 +478,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZTransition.SQLInsert", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Add(SqlConnection cn, Transition myTransition, string oldto) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZTransition.Add", 0); @@ -510,7 +510,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZTransition.Add", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_Update() { if (!IsDirty) return; // If not dirty - nothing to do @@ -533,7 +533,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 @@ -595,7 +595,7 @@ namespace VEPROMS.CSLA.Library MarkOld(); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static byte[] Update(SqlConnection cn, int transitionID, string oldto, ref byte[] lastChanged) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZTransition.Update", 0); @@ -628,12 +628,12 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZTransition.Update", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + protected override void DataPortal_DeleteSelf() { DataPortal_Delete(new PKCriteria(_TransitionID)); } - [Transactional(TransactionalTypes.TransactionScope)] + private void DataPortal_Delete(PKCriteria criteria) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZTransition.DataPortal_Delete", GetHashCode()); @@ -658,7 +658,7 @@ namespace VEPROMS.CSLA.Library throw new DbCslaException("ZTransition.DataPortal_Delete", ex); } } - [Transactional(TransactionalTypes.TransactionScope)] + public static void Remove(SqlConnection cn, int transitionID) { if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ZTransition.Remove", 0);