using System; using System.Collections.Generic; using System.Text; using Volian.Base.Library; namespace VEPROMS.CSLA.Library { public static class CSLACache { public static bool SaveStack = false; public static bool RestoreCache = true; public static string Usage { get { StringBuilder sb = new StringBuilder(); sb.Append("'Not Disposed'\t'Not Finalized'\r\n"); sb.Append(Counts(Annotation.CountNotDisposed, Annotation.CountNotFinalized)); sb.Append(Counts(AnnotationAudit.CountNotDisposed, AnnotationAudit.CountNotFinalized)); sb.Append(Counts(AnnotationAuditInfo.CountNotDisposed, AnnotationAuditInfo.CountNotFinalized)); sb.Append(Counts(AnnotationAuditInfoList.CountNotDisposed, AnnotationAuditInfoList.CountNotFinalized)); sb.Append(Counts(AnnotationInfo.CountNotDisposed, AnnotationInfo.CountNotFinalized)); sb.Append(Counts(AnnotationInfoList.CountNotDisposed, AnnotationInfoList.CountNotFinalized)); sb.Append(Counts(AnnotationType.CountNotDisposed, AnnotationType.CountNotFinalized)); sb.Append(Counts(AnnotationTypeAnnotation.CountNotDisposed, AnnotationTypeAnnotation.CountNotFinalized)); sb.Append(Counts(AnnotationTypeAnnotations.CountNotDisposed, AnnotationTypeAnnotations.CountNotFinalized)); sb.Append(Counts(AnnotationTypeInfo.CountNotDisposed, AnnotationTypeInfo.CountNotFinalized)); sb.Append(Counts(AnnotationTypeInfoList.CountNotDisposed, AnnotationTypeInfoList.CountNotFinalized)); sb.Append(Counts(Assignment.CountNotDisposed, Assignment.CountNotFinalized)); sb.Append(Counts(AssignmentInfo.CountNotDisposed, AssignmentInfo.CountNotFinalized)); sb.Append(Counts(AssignmentInfoList.CountNotDisposed, AssignmentInfoList.CountNotFinalized)); sb.Append(Counts(Association.CountNotDisposed, Association.CountNotFinalized)); sb.Append(Counts(AssociationInfo.CountNotDisposed, AssociationInfo.CountNotFinalized)); sb.Append(Counts(AssociationInfoList.CountNotDisposed, AssociationInfoList.CountNotFinalized)); sb.Append(Counts(Check.CountNotDisposed, Check.CountNotFinalized)); sb.Append(Counts(CheckInfo.CountNotDisposed, CheckInfo.CountNotFinalized)); sb.Append(Counts(CheckInfoList.CountNotDisposed, CheckInfoList.CountNotFinalized)); sb.Append(Counts(ChildFolders.CountNotDisposed, ChildFolders.CountNotFinalized)); sb.Append(Counts(ChildFormats.CountNotDisposed, ChildFormats.CountNotFinalized)); sb.Append(Counts(Connection.CountNotDisposed, Connection.CountNotFinalized)); sb.Append(Counts(ConnectionFolder.CountNotDisposed, ConnectionFolder.CountNotFinalized)); sb.Append(Counts(ConnectionFolders.CountNotDisposed, ConnectionFolders.CountNotFinalized)); sb.Append(Counts(ConnectionInfo.CountNotDisposed, ConnectionInfo.CountNotFinalized)); sb.Append(Counts(ConnectionInfoList.CountNotDisposed, ConnectionInfoList.CountNotFinalized)); sb.Append(Counts(Content.CountNotDisposed, Content.CountNotFinalized)); sb.Append(Counts(ContentAudit.CountNotDisposed, ContentAudit.CountNotFinalized)); sb.Append(Counts(ContentAuditInfo.CountNotDisposed, ContentAuditInfo.CountNotFinalized)); sb.Append(Counts(ContentAuditInfoList.CountNotDisposed, ContentAuditInfoList.CountNotFinalized)); sb.Append(Counts(ContentDetail.CountNotDisposed, ContentDetail.CountNotFinalized)); sb.Append(Counts(ContentDetails.CountNotDisposed, ContentDetails.CountNotFinalized)); sb.Append(Counts(ContentInfo.CountNotDisposed, ContentInfo.CountNotFinalized)); sb.Append(Counts(ContentInfoList.CountNotDisposed, ContentInfoList.CountNotFinalized)); sb.Append(Counts(ContentItem.CountNotDisposed, ContentItem.CountNotFinalized)); sb.Append(Counts(ContentItems.CountNotDisposed, ContentItems.CountNotFinalized)); sb.Append(Counts(ContentPart.CountNotDisposed, ContentPart.CountNotFinalized)); sb.Append(Counts(ContentParts.CountNotDisposed, ContentParts.CountNotFinalized)); sb.Append(Counts(ContentRoUsage.CountNotDisposed, ContentRoUsage.CountNotFinalized)); sb.Append(Counts(ContentRoUsages.CountNotDisposed, ContentRoUsages.CountNotFinalized)); sb.Append(Counts(ContentTransition.CountNotDisposed, ContentTransition.CountNotFinalized)); sb.Append(Counts(ContentTransitions.CountNotDisposed, ContentTransitions.CountNotFinalized)); sb.Append(Counts(Detail.CountNotDisposed, Detail.CountNotFinalized)); sb.Append(Counts(DetailInfo.CountNotDisposed, DetailInfo.CountNotFinalized)); sb.Append(Counts(DetailInfoList.CountNotDisposed, DetailInfoList.CountNotFinalized)); sb.Append(Counts(Document.CountNotDisposed, Document.CountNotFinalized)); sb.Append(Counts(DocumentAudit.CountNotDisposed, DocumentAudit.CountNotFinalized)); sb.Append(Counts(DocumentAuditInfo.CountNotDisposed, DocumentAuditInfo.CountNotFinalized)); sb.Append(Counts(DocumentAuditInfoList.CountNotDisposed, DocumentAuditInfoList.CountNotFinalized)); sb.Append(Counts(DocumentDROUsage.CountNotDisposed, DocumentDROUsage.CountNotFinalized)); sb.Append(Counts(DocumentDROUsages.CountNotDisposed, DocumentDROUsages.CountNotFinalized)); sb.Append(Counts(DocumentEntries.CountNotDisposed, DocumentEntries.CountNotFinalized)); sb.Append(Counts(DocumentEntry.CountNotDisposed, DocumentEntry.CountNotFinalized)); sb.Append(Counts(DocumentInfo.CountNotDisposed, DocumentInfo.CountNotFinalized)); sb.Append(Counts(DocumentInfoList.CountNotDisposed, DocumentInfoList.CountNotFinalized)); sb.Append(Counts(DocumentPdf.CountNotDisposed, DocumentPdf.CountNotFinalized)); sb.Append(Counts(DocumentPdfs.CountNotDisposed, DocumentPdfs.CountNotFinalized)); sb.Append(Counts(DocVersion.CountNotDisposed, DocVersion.CountNotFinalized)); sb.Append(Counts(DocVersionAssociation.CountNotDisposed, DocVersionAssociation.CountNotFinalized)); sb.Append(Counts(DocVersionAssociations.CountNotDisposed, DocVersionAssociations.CountNotFinalized)); sb.Append(Counts(DocVersionInfo.CountNotDisposed, DocVersionInfo.CountNotFinalized)); sb.Append(Counts(DocVersionInfoList.CountNotDisposed, DocVersionInfoList.CountNotFinalized)); sb.Append(Counts(DROUsage.CountNotDisposed, DROUsage.CountNotFinalized)); sb.Append(Counts(DROUsageInfo.CountNotDisposed, DROUsageInfo.CountNotFinalized)); sb.Append(Counts(DROUsageInfoList.CountNotDisposed, DROUsageInfoList.CountNotFinalized)); sb.Append(Counts(Entry.CountNotDisposed, Entry.CountNotFinalized)); sb.Append(Counts(EntryAudit.CountNotDisposed, EntryAudit.CountNotFinalized)); sb.Append(Counts(EntryAuditInfo.CountNotDisposed, EntryAuditInfo.CountNotFinalized)); sb.Append(Counts(EntryAuditInfoList.CountNotDisposed, EntryAuditInfoList.CountNotFinalized)); sb.Append(Counts(EntryInfo.CountNotDisposed, EntryInfo.CountNotFinalized)); sb.Append(Counts(EntryInfoList.CountNotDisposed, EntryInfoList.CountNotFinalized)); sb.Append(Counts
(Figure.CountNotDisposed, Figure.CountNotFinalized)); sb.Append(Counts(FigureInfo.CountNotDisposed, FigureInfo.CountNotFinalized)); sb.Append(Counts(FigureInfoList.CountNotDisposed, FigureInfoList.CountNotFinalized)); sb.Append(Counts(Folder.CountNotDisposed, Folder.CountNotFinalized)); sb.Append(Counts(FolderAssignment.CountNotDisposed, FolderAssignment.CountNotFinalized)); sb.Append(Counts(FolderAssignments.CountNotDisposed, FolderAssignments.CountNotFinalized)); sb.Append(Counts(FolderDocVersion.CountNotDisposed, FolderDocVersion.CountNotFinalized)); sb.Append(Counts(FolderDocVersions.CountNotDisposed, FolderDocVersions.CountNotFinalized)); sb.Append(Counts(FolderInfo.CountNotDisposed, FolderInfo.CountNotFinalized)); sb.Append(Counts(FolderInfoList.CountNotDisposed, FolderInfoList.CountNotFinalized)); sb.Append(Counts(Format.CountNotDisposed, Format.CountNotFinalized)); sb.Append(Counts(FormatContent.CountNotDisposed, FormatContent.CountNotFinalized)); sb.Append(Counts(FormatContents.CountNotDisposed, FormatContents.CountNotFinalized)); sb.Append(Counts(FormatDocVersion.CountNotDisposed, FormatDocVersion.CountNotFinalized)); sb.Append(Counts(FormatDocVersions.CountNotDisposed, FormatDocVersions.CountNotFinalized)); sb.Append(Counts(FormatFolder.CountNotDisposed, FormatFolder.CountNotFinalized)); sb.Append(Counts(FormatFolders.CountNotDisposed, FormatFolders.CountNotFinalized)); sb.Append(Counts(FormatInfo.CountNotDisposed, FormatInfo.CountNotFinalized)); sb.Append(Counts(FormatInfoList.CountNotDisposed, FormatInfoList.CountNotFinalized)); sb.Append(Counts(Grid.CountNotDisposed, Grid.CountNotFinalized)); sb.Append(Counts(GridAudit.CountNotDisposed, GridAudit.CountNotFinalized)); sb.Append(Counts(GridAuditInfo.CountNotDisposed, GridAuditInfo.CountNotFinalized)); sb.Append(Counts(GridAuditInfoList.CountNotDisposed, GridAuditInfoList.CountNotFinalized)); sb.Append(Counts(GridInfo.CountNotDisposed, GridInfo.CountNotFinalized)); sb.Append(Counts(Group.CountNotDisposed, Group.CountNotFinalized)); sb.Append(Counts(GroupAssignment.CountNotDisposed, GroupAssignment.CountNotFinalized)); sb.Append(Counts(GroupAssignments.CountNotDisposed, GroupAssignments.CountNotFinalized)); sb.Append(Counts(GroupInfo.CountNotDisposed, GroupInfo.CountNotFinalized)); sb.Append(Counts(GroupInfoList.CountNotDisposed, GroupInfoList.CountNotFinalized)); sb.Append(Counts(GroupMembership.CountNotDisposed, GroupMembership.CountNotFinalized)); sb.Append(Counts(GroupMemberships.CountNotDisposed, GroupMemberships.CountNotFinalized)); sb.Append(Counts(Image.CountNotDisposed, Image.CountNotFinalized)); sb.Append(Counts(ImageAudit.CountNotDisposed, ImageAudit.CountNotFinalized)); sb.Append(Counts(ImageAuditInfo.CountNotDisposed, ImageAuditInfo.CountNotFinalized)); sb.Append(Counts(ImageAuditInfoList.CountNotDisposed, ImageAuditInfoList.CountNotFinalized)); sb.Append(Counts(ImageInfo.CountNotDisposed, ImageInfo.CountNotFinalized)); sb.Append(Counts(Item.CountNotDisposed, Item.CountNotFinalized)); sb.Append(Counts(ItemAnnotation.CountNotDisposed, ItemAnnotation.CountNotFinalized)); sb.Append(Counts(ItemAnnotations.CountNotDisposed, ItemAnnotations.CountNotFinalized)); sb.Append(Counts(ItemAudit.CountNotDisposed, ItemAudit.CountNotFinalized)); sb.Append(Counts(ItemAuditInfo.CountNotDisposed, ItemAuditInfo.CountNotFinalized)); sb.Append(Counts(ItemAuditInfoList.CountNotDisposed, ItemAuditInfoList.CountNotFinalized)); sb.Append(Counts(ItemDocVersion.CountNotDisposed, ItemDocVersion.CountNotFinalized)); sb.Append(Counts(ItemDocVersions.CountNotDisposed, ItemDocVersions.CountNotFinalized)); sb.Append(Counts(ItemInfo.CountNotDisposed, ItemInfo.CountNotFinalized)); sb.Append(Counts(ItemInfoList.CountNotDisposed, ItemInfoList.CountNotFinalized)); sb.Append(Counts(ItemPart.CountNotDisposed, ItemPart.CountNotFinalized)); sb.Append(Counts(ItemParts.CountNotDisposed, ItemParts.CountNotFinalized)); sb.Append(Counts(ItemTransitions_RangeID.CountNotDisposed, ItemTransitions_RangeID.CountNotFinalized)); sb.Append(Counts(ItemTransitions_ToID.CountNotDisposed, ItemTransitions_ToID.CountNotFinalized)); sb.Append(Counts(ItemTransition_RangeID.CountNotDisposed, ItemTransition_RangeID.CountNotFinalized)); sb.Append(Counts(ItemTransition_ToID.CountNotDisposed, ItemTransition_ToID.CountNotFinalized)); sb.Append(Counts(Membership.CountNotDisposed, Membership.CountNotFinalized)); sb.Append(Counts(MembershipInfo.CountNotDisposed, MembershipInfo.CountNotFinalized)); sb.Append(Counts(MembershipInfoList.CountNotDisposed, MembershipInfoList.CountNotFinalized)); //sb.Append(Counts(NextItems.CountNotDisposed, NextItems.CountNotFinalized)); sb.Append(Counts(Part.CountNotDisposed, Part.CountNotFinalized)); sb.Append(Counts(PartAudit.CountNotDisposed, PartAudit.CountNotFinalized)); sb.Append(Counts(PartAuditInfo.CountNotDisposed, PartAuditInfo.CountNotFinalized)); sb.Append(Counts(PartAuditInfoList.CountNotDisposed, PartAuditInfoList.CountNotFinalized)); sb.Append(Counts(PartInfo.CountNotDisposed, PartInfo.CountNotFinalized)); sb.Append(Counts(PartInfoList.CountNotDisposed, PartInfoList.CountNotFinalized)); sb.Append(Counts(Pdf.CountNotDisposed, Pdf.CountNotFinalized)); sb.Append(Counts(PdfInfo.CountNotDisposed, PdfInfo.CountNotFinalized)); sb.Append(Counts(PdfInfoList.CountNotDisposed, PdfInfoList.CountNotFinalized)); sb.Append(Counts(Permission.CountNotDisposed, Permission.CountNotFinalized)); sb.Append(Counts(PermissionInfo.CountNotDisposed, PermissionInfo.CountNotFinalized)); sb.Append(Counts(PermissionInfoList.CountNotDisposed, PermissionInfoList.CountNotFinalized)); sb.Append(Counts(Revision.CountNotDisposed, Revision.CountNotFinalized)); sb.Append(Counts(RevisionCheck.CountNotDisposed, RevisionCheck.CountNotFinalized)); sb.Append(Counts(RevisionChecks.CountNotDisposed, RevisionChecks.CountNotFinalized)); sb.Append(Counts(RevisionInfo.CountNotDisposed, RevisionInfo.CountNotFinalized)); sb.Append(Counts(RevisionInfoList.CountNotDisposed, RevisionInfoList.CountNotFinalized)); sb.Append(Counts(RevisionVersion.CountNotDisposed, RevisionVersion.CountNotFinalized)); sb.Append(Counts(RevisionVersions.CountNotDisposed, RevisionVersions.CountNotFinalized)); sb.Append(Counts(RODb.CountNotDisposed, RODb.CountNotFinalized)); sb.Append(Counts(RODbDROUsage.CountNotDisposed, RODbDROUsage.CountNotFinalized)); sb.Append(Counts(RODbDROUsages.CountNotDisposed, RODbDROUsages.CountNotFinalized)); sb.Append(Counts(RODbInfo.CountNotDisposed, RODbInfo.CountNotFinalized)); sb.Append(Counts(RODbInfoList.CountNotDisposed, RODbInfoList.CountNotFinalized)); sb.Append(Counts(RODbROFst.CountNotDisposed, RODbROFst.CountNotFinalized)); sb.Append(Counts(RODbROFsts.CountNotDisposed, RODbROFsts.CountNotFinalized)); sb.Append(Counts(RODbROImage.CountNotDisposed, RODbROImage.CountNotFinalized)); sb.Append(Counts(RODbROImages.CountNotDisposed, RODbROImages.CountNotFinalized)); sb.Append(Counts(RODbRoUsage.CountNotDisposed, RODbRoUsage.CountNotFinalized)); sb.Append(Counts(RODbRoUsages.CountNotDisposed, RODbRoUsages.CountNotFinalized)); sb.Append(Counts(ROFst.CountNotDisposed, ROFst.CountNotFinalized)); sb.Append(Counts(ROFstAssociation.CountNotDisposed, ROFstAssociation.CountNotFinalized)); sb.Append(Counts(ROFstAssociations.CountNotDisposed, ROFstAssociations.CountNotFinalized)); sb.Append(Counts(ROFstFigure.CountNotDisposed, ROFstFigure.CountNotFinalized)); sb.Append(Counts(ROFstFigures.CountNotDisposed, ROFstFigures.CountNotFinalized)); sb.Append(Counts(ROFstInfo.CountNotDisposed, ROFstInfo.CountNotFinalized)); sb.Append(Counts(ROFstInfoList.CountNotDisposed, ROFstInfoList.CountNotFinalized)); sb.Append(Counts(ROImage.CountNotDisposed, ROImage.CountNotFinalized)); sb.Append(Counts(ROImageFigure.CountNotDisposed, ROImageFigure.CountNotFinalized)); sb.Append(Counts(ROImageFigures.CountNotDisposed, ROImageFigures.CountNotFinalized)); sb.Append(Counts(ROImageInfo.CountNotDisposed, ROImageInfo.CountNotFinalized)); sb.Append(Counts(ROImageInfoList.CountNotDisposed, ROImageInfoList.CountNotFinalized)); sb.Append(Counts(Role.CountNotDisposed, Role.CountNotFinalized)); sb.Append(Counts(RoleAssignment.CountNotDisposed, RoleAssignment.CountNotFinalized)); sb.Append(Counts(RoleAssignments.CountNotDisposed, RoleAssignments.CountNotFinalized)); sb.Append(Counts(RoleInfo.CountNotDisposed, RoleInfo.CountNotFinalized)); sb.Append(Counts(RoleInfoList.CountNotDisposed, RoleInfoList.CountNotFinalized)); sb.Append(Counts(RolePermission.CountNotDisposed, RolePermission.CountNotFinalized)); sb.Append(Counts(RolePermissions.CountNotDisposed, RolePermissions.CountNotFinalized)); sb.Append(Counts(RoUsage.CountNotDisposed, RoUsage.CountNotFinalized)); sb.Append(Counts(RoUsageInfo.CountNotDisposed, RoUsageInfo.CountNotFinalized)); sb.Append(Counts(RoUsageInfoList.CountNotDisposed, RoUsageInfoList.CountNotFinalized)); sb.Append(Counts(Stage.CountNotDisposed, Stage.CountNotFinalized)); sb.Append(Counts(StageCheck.CountNotDisposed, StageCheck.CountNotFinalized)); sb.Append(Counts(StageChecks.CountNotDisposed, StageChecks.CountNotFinalized)); sb.Append(Counts(StageInfo.CountNotDisposed, StageInfo.CountNotFinalized)); sb.Append(Counts(StageInfoList.CountNotDisposed, StageInfoList.CountNotFinalized)); sb.Append(Counts(StageVersion.CountNotDisposed, StageVersion.CountNotFinalized)); sb.Append(Counts(StageVersions.CountNotDisposed, StageVersions.CountNotFinalized)); sb.Append(Counts(Transition.CountNotDisposed, Transition.CountNotFinalized)); sb.Append(Counts(TransitionInfo.CountNotDisposed, TransitionInfo.CountNotFinalized)); sb.Append(Counts(TransitionInfoList.CountNotDisposed, TransitionInfoList.CountNotFinalized)); sb.Append(Counts(User.CountNotDisposed, User.CountNotFinalized)); sb.Append(Counts(UserInfo.CountNotDisposed, UserInfo.CountNotFinalized)); sb.Append(Counts(UserInfoList.CountNotDisposed, UserInfoList.CountNotFinalized)); sb.Append(Counts(UserMembership.CountNotDisposed, UserMembership.CountNotFinalized)); sb.Append(Counts(UserMemberships.CountNotDisposed, UserMemberships.CountNotFinalized)); sb.Append(Counts(Version.CountNotDisposed, Version.CountNotFinalized)); sb.Append(Counts(VersionInfo.CountNotDisposed, VersionInfo.CountNotFinalized)); sb.Append(Counts(VersionInfoList.CountNotDisposed, VersionInfoList.CountNotFinalized)); sb.Append(Counts(ZContent.CountNotDisposed, ZContent.CountNotFinalized)); sb.Append(Counts(ZContentInfo.CountNotDisposed, ZContentInfo.CountNotFinalized)); sb.Append(Counts(ZTransition.CountNotDisposed, ZTransition.CountNotFinalized)); sb.Append(Counts(ZTransitionInfo.CountNotDisposed, ZTransitionInfo.CountNotFinalized)); return sb.ToString(); } } public static string UsageAll { get { StringBuilder sb = new StringBuilder(); sb.Append("'Created'\t'Not Disposed'\t'Not Finalized'\r\n"); sb.Append(Counts(Annotation.CountCreated, Annotation.CountNotDisposed, Annotation.CountNotFinalized)); sb.Append(Counts(AnnotationAudit.CountCreated, AnnotationAudit.CountNotDisposed, AnnotationAudit.CountNotFinalized)); sb.Append(Counts(AnnotationAuditInfo.CountCreated, AnnotationAuditInfo.CountNotDisposed, AnnotationAuditInfo.CountNotFinalized)); sb.Append(Counts(AnnotationAuditInfoList.CountCreated, AnnotationAuditInfoList.CountNotDisposed, AnnotationAuditInfoList.CountNotFinalized)); sb.Append(Counts(AnnotationInfo.CountCreated, AnnotationInfo.CountNotDisposed, AnnotationInfo.CountNotFinalized)); sb.Append(Counts(AnnotationInfoList.CountCreated, AnnotationInfoList.CountNotDisposed, AnnotationInfoList.CountNotFinalized)); sb.Append(Counts(AnnotationType.CountCreated, AnnotationType.CountNotDisposed, AnnotationType.CountNotFinalized)); sb.Append(Counts(AnnotationTypeAnnotation.CountCreated, AnnotationTypeAnnotation.CountNotDisposed, AnnotationTypeAnnotation.CountNotFinalized)); sb.Append(Counts(AnnotationTypeAnnotations.CountCreated, AnnotationTypeAnnotations.CountNotDisposed, AnnotationTypeAnnotations.CountNotFinalized)); sb.Append(Counts(AnnotationTypeInfo.CountCreated, AnnotationTypeInfo.CountNotDisposed, AnnotationTypeInfo.CountNotFinalized)); sb.Append(Counts(AnnotationTypeInfoList.CountCreated, AnnotationTypeInfoList.CountNotDisposed, AnnotationTypeInfoList.CountNotFinalized)); sb.Append(Counts(Assignment.CountCreated, Assignment.CountNotDisposed, Assignment.CountNotFinalized)); sb.Append(Counts(AssignmentInfo.CountCreated, AssignmentInfo.CountNotDisposed, AssignmentInfo.CountNotFinalized)); sb.Append(Counts(AssignmentInfoList.CountCreated, AssignmentInfoList.CountNotDisposed, AssignmentInfoList.CountNotFinalized)); sb.Append(Counts(Association.CountCreated, Association.CountNotDisposed, Association.CountNotFinalized)); sb.Append(Counts(AssociationInfo.CountCreated, AssociationInfo.CountNotDisposed, AssociationInfo.CountNotFinalized)); sb.Append(Counts(AssociationInfoList.CountCreated, AssociationInfoList.CountNotDisposed, AssociationInfoList.CountNotFinalized)); sb.Append(Counts(Check.CountCreated, Check.CountNotDisposed, Check.CountNotFinalized)); sb.Append(Counts(CheckInfo.CountCreated, CheckInfo.CountNotDisposed, CheckInfo.CountNotFinalized)); sb.Append(Counts(CheckInfoList.CountCreated, CheckInfoList.CountNotDisposed, CheckInfoList.CountNotFinalized)); sb.Append(Counts(ChildFolders.CountCreated, ChildFolders.CountNotDisposed, ChildFolders.CountNotFinalized)); sb.Append(Counts(ChildFormats.CountCreated, ChildFormats.CountNotDisposed, ChildFormats.CountNotFinalized)); sb.Append(Counts(Connection.CountCreated, Connection.CountNotDisposed, Connection.CountNotFinalized)); sb.Append(Counts(ConnectionFolder.CountCreated, ConnectionFolder.CountNotDisposed, ConnectionFolder.CountNotFinalized)); sb.Append(Counts(ConnectionFolders.CountCreated, ConnectionFolders.CountNotDisposed, ConnectionFolders.CountNotFinalized)); sb.Append(Counts(ConnectionInfo.CountCreated, ConnectionInfo.CountNotDisposed, ConnectionInfo.CountNotFinalized)); sb.Append(Counts(ConnectionInfoList.CountCreated, ConnectionInfoList.CountNotDisposed, ConnectionInfoList.CountNotFinalized)); sb.Append(Counts(Content.CountCreated, Content.CountNotDisposed, Content.CountNotFinalized)); sb.Append(Counts(ContentAudit.CountCreated, ContentAudit.CountNotDisposed, ContentAudit.CountNotFinalized)); sb.Append(Counts(ContentAuditInfo.CountCreated, ContentAuditInfo.CountNotDisposed, ContentAuditInfo.CountNotFinalized)); sb.Append(Counts(ContentAuditInfoList.CountCreated, ContentAuditInfoList.CountNotDisposed, ContentAuditInfoList.CountNotFinalized)); sb.Append(Counts(ContentDetail.CountCreated, ContentDetail.CountNotDisposed, ContentDetail.CountNotFinalized)); sb.Append(Counts(ContentDetails.CountCreated, ContentDetails.CountNotDisposed, ContentDetails.CountNotFinalized)); sb.Append(Counts(ContentInfo.CountCreated, ContentInfo.CountNotDisposed, ContentInfo.CountNotFinalized)); sb.Append(Counts(ContentInfoList.CountCreated, ContentInfoList.CountNotDisposed, ContentInfoList.CountNotFinalized)); sb.Append(Counts(ContentItem.CountCreated, ContentItem.CountNotDisposed, ContentItem.CountNotFinalized)); sb.Append(Counts(ContentItems.CountCreated, ContentItems.CountNotDisposed, ContentItems.CountNotFinalized)); sb.Append(Counts(ContentPart.CountCreated, ContentPart.CountNotDisposed, ContentPart.CountNotFinalized)); sb.Append(Counts(ContentParts.CountCreated, ContentParts.CountNotDisposed, ContentParts.CountNotFinalized)); sb.Append(Counts(ContentRoUsage.CountCreated, ContentRoUsage.CountNotDisposed, ContentRoUsage.CountNotFinalized)); sb.Append(Counts(ContentRoUsages.CountCreated, ContentRoUsages.CountNotDisposed, ContentRoUsages.CountNotFinalized)); sb.Append(Counts(ContentTransition.CountCreated, ContentTransition.CountNotDisposed, ContentTransition.CountNotFinalized)); sb.Append(Counts(ContentTransitions.CountCreated, ContentTransitions.CountNotDisposed, ContentTransitions.CountNotFinalized)); sb.Append(Counts(Detail.CountCreated, Detail.CountNotDisposed, Detail.CountNotFinalized)); sb.Append(Counts(DetailInfo.CountCreated, DetailInfo.CountNotDisposed, DetailInfo.CountNotFinalized)); sb.Append(Counts(DetailInfoList.CountCreated, DetailInfoList.CountNotDisposed, DetailInfoList.CountNotFinalized)); sb.Append(Counts(Document.CountCreated, Document.CountNotDisposed, Document.CountNotFinalized)); sb.Append(Counts(DocumentAudit.CountCreated, DocumentAudit.CountNotDisposed, DocumentAudit.CountNotFinalized)); sb.Append(Counts(DocumentAuditInfo.CountCreated, DocumentAuditInfo.CountNotDisposed, DocumentAuditInfo.CountNotFinalized)); sb.Append(Counts(DocumentAuditInfoList.CountCreated, DocumentAuditInfoList.CountNotDisposed, DocumentAuditInfoList.CountNotFinalized)); sb.Append(Counts(DocumentDROUsage.CountCreated, DocumentDROUsage.CountNotDisposed, DocumentDROUsage.CountNotFinalized)); sb.Append(Counts(DocumentDROUsages.CountCreated, DocumentDROUsages.CountNotDisposed, DocumentDROUsages.CountNotFinalized)); sb.Append(Counts(DocumentEntries.CountCreated, DocumentEntries.CountNotDisposed, DocumentEntries.CountNotFinalized)); sb.Append(Counts(DocumentEntry.CountCreated, DocumentEntry.CountNotDisposed, DocumentEntry.CountNotFinalized)); sb.Append(Counts(DocumentInfo.CountCreated, DocumentInfo.CountNotDisposed, DocumentInfo.CountNotFinalized)); sb.Append(Counts(DocumentInfoList.CountCreated, DocumentInfoList.CountNotDisposed, DocumentInfoList.CountNotFinalized)); sb.Append(Counts(DocumentPdf.CountCreated, DocumentPdf.CountNotDisposed, DocumentPdf.CountNotFinalized)); sb.Append(Counts(DocumentPdfs.CountCreated, DocumentPdfs.CountNotDisposed, DocumentPdfs.CountNotFinalized)); sb.Append(Counts(DocVersion.CountCreated, DocVersion.CountNotDisposed, DocVersion.CountNotFinalized)); sb.Append(Counts(DocVersionAssociation.CountCreated, DocVersionAssociation.CountNotDisposed, DocVersionAssociation.CountNotFinalized)); sb.Append(Counts(DocVersionAssociations.CountCreated, DocVersionAssociations.CountNotDisposed, DocVersionAssociations.CountNotFinalized)); sb.Append(Counts(DocVersionInfo.CountCreated, DocVersionInfo.CountNotDisposed, DocVersionInfo.CountNotFinalized)); sb.Append(Counts(DocVersionInfoList.CountCreated, DocVersionInfoList.CountNotDisposed, DocVersionInfoList.CountNotFinalized)); sb.Append(Counts(DROUsage.CountCreated, DROUsage.CountNotDisposed, DROUsage.CountNotFinalized)); sb.Append(Counts(DROUsageInfo.CountCreated, DROUsageInfo.CountNotDisposed, DROUsageInfo.CountNotFinalized)); sb.Append(Counts(DROUsageInfoList.CountCreated, DROUsageInfoList.CountNotDisposed, DROUsageInfoList.CountNotFinalized)); sb.Append(Counts(Entry.CountCreated, Entry.CountNotDisposed, Entry.CountNotFinalized)); sb.Append(Counts(EntryAudit.CountCreated, EntryAudit.CountNotDisposed, EntryAudit.CountNotFinalized)); sb.Append(Counts(EntryAuditInfo.CountCreated, EntryAuditInfo.CountNotDisposed, EntryAuditInfo.CountNotFinalized)); sb.Append(Counts(EntryAuditInfoList.CountCreated, EntryAuditInfoList.CountNotDisposed, EntryAuditInfoList.CountNotFinalized)); sb.Append(Counts(EntryInfo.CountCreated, EntryInfo.CountNotDisposed, EntryInfo.CountNotFinalized)); sb.Append(Counts(EntryInfoList.CountCreated, EntryInfoList.CountNotDisposed, EntryInfoList.CountNotFinalized)); sb.Append(Counts
(Figure.CountCreated, Figure.CountNotDisposed, Figure.CountNotFinalized)); sb.Append(Counts(FigureInfo.CountCreated, FigureInfo.CountNotDisposed, FigureInfo.CountNotFinalized)); sb.Append(Counts(FigureInfoList.CountCreated, FigureInfoList.CountNotDisposed, FigureInfoList.CountNotFinalized)); sb.Append(Counts(Folder.CountCreated, Folder.CountNotDisposed, Folder.CountNotFinalized)); sb.Append(Counts(FolderAssignment.CountCreated, FolderAssignment.CountNotDisposed, FolderAssignment.CountNotFinalized)); sb.Append(Counts(FolderAssignments.CountCreated, FolderAssignments.CountNotDisposed, FolderAssignments.CountNotFinalized)); sb.Append(Counts(FolderDocVersion.CountCreated, FolderDocVersion.CountNotDisposed, FolderDocVersion.CountNotFinalized)); sb.Append(Counts(FolderDocVersions.CountCreated, FolderDocVersions.CountNotDisposed, FolderDocVersions.CountNotFinalized)); sb.Append(Counts(FolderInfo.CountCreated, FolderInfo.CountNotDisposed, FolderInfo.CountNotFinalized)); sb.Append(Counts(FolderInfoList.CountCreated, FolderInfoList.CountNotDisposed, FolderInfoList.CountNotFinalized)); sb.Append(Counts(Format.CountCreated, Format.CountNotDisposed, Format.CountNotFinalized)); sb.Append(Counts(FormatContent.CountCreated, FormatContent.CountNotDisposed, FormatContent.CountNotFinalized)); sb.Append(Counts(FormatContents.CountCreated, FormatContents.CountNotDisposed, FormatContents.CountNotFinalized)); sb.Append(Counts(FormatDocVersion.CountCreated, FormatDocVersion.CountNotDisposed, FormatDocVersion.CountNotFinalized)); sb.Append(Counts(FormatDocVersions.CountCreated, FormatDocVersions.CountNotDisposed, FormatDocVersions.CountNotFinalized)); sb.Append(Counts(FormatFolder.CountCreated, FormatFolder.CountNotDisposed, FormatFolder.CountNotFinalized)); sb.Append(Counts(FormatFolders.CountCreated, FormatFolders.CountNotDisposed, FormatFolders.CountNotFinalized)); sb.Append(Counts(FormatInfo.CountCreated, FormatInfo.CountNotDisposed, FormatInfo.CountNotFinalized)); sb.Append(Counts(FormatInfoList.CountCreated, FormatInfoList.CountNotDisposed, FormatInfoList.CountNotFinalized)); sb.Append(Counts(Grid.CountCreated, Grid.CountNotDisposed, Grid.CountNotFinalized)); sb.Append(Counts(GridAudit.CountCreated, GridAudit.CountNotDisposed, GridAudit.CountNotFinalized)); sb.Append(Counts(GridAuditInfo.CountCreated, GridAuditInfo.CountNotDisposed, GridAuditInfo.CountNotFinalized)); sb.Append(Counts(GridAuditInfoList.CountCreated, GridAuditInfoList.CountNotDisposed, GridAuditInfoList.CountNotFinalized)); sb.Append(Counts(GridInfo.CountCreated, GridInfo.CountNotDisposed, GridInfo.CountNotFinalized)); sb.Append(Counts(Group.CountCreated, Group.CountNotDisposed, Group.CountNotFinalized)); sb.Append(Counts(GroupAssignment.CountCreated, GroupAssignment.CountNotDisposed, GroupAssignment.CountNotFinalized)); sb.Append(Counts(GroupAssignments.CountCreated, GroupAssignments.CountNotDisposed, GroupAssignments.CountNotFinalized)); sb.Append(Counts(GroupInfo.CountCreated, GroupInfo.CountNotDisposed, GroupInfo.CountNotFinalized)); sb.Append(Counts(GroupInfoList.CountCreated, GroupInfoList.CountNotDisposed, GroupInfoList.CountNotFinalized)); sb.Append(Counts(GroupMembership.CountCreated, GroupMembership.CountNotDisposed, GroupMembership.CountNotFinalized)); sb.Append(Counts(GroupMemberships.CountCreated, GroupMemberships.CountNotDisposed, GroupMemberships.CountNotFinalized)); sb.Append(Counts(Image.CountCreated, Image.CountNotDisposed, Image.CountNotFinalized)); sb.Append(Counts(ImageAudit.CountCreated, ImageAudit.CountNotDisposed, ImageAudit.CountNotFinalized)); sb.Append(Counts(ImageAuditInfo.CountCreated, ImageAuditInfo.CountNotDisposed, ImageAuditInfo.CountNotFinalized)); sb.Append(Counts(ImageAuditInfoList.CountCreated, ImageAuditInfoList.CountNotDisposed, ImageAuditInfoList.CountNotFinalized)); sb.Append(Counts(ImageInfo.CountCreated, ImageInfo.CountNotDisposed, ImageInfo.CountNotFinalized)); sb.Append(Counts(Item.CountCreated, Item.CountNotDisposed, Item.CountNotFinalized)); sb.Append(Counts(ItemAnnotation.CountCreated, ItemAnnotation.CountNotDisposed, ItemAnnotation.CountNotFinalized)); sb.Append(Counts(ItemAnnotations.CountCreated, ItemAnnotations.CountNotDisposed, ItemAnnotations.CountNotFinalized)); sb.Append(Counts(ItemAudit.CountCreated, ItemAudit.CountNotDisposed, ItemAudit.CountNotFinalized)); sb.Append(Counts(ItemAuditInfo.CountCreated, ItemAuditInfo.CountNotDisposed, ItemAuditInfo.CountNotFinalized)); sb.Append(Counts(ItemAuditInfoList.CountCreated, ItemAuditInfoList.CountNotDisposed, ItemAuditInfoList.CountNotFinalized)); sb.Append(Counts(ItemDocVersion.CountCreated, ItemDocVersion.CountNotDisposed, ItemDocVersion.CountNotFinalized)); sb.Append(Counts(ItemDocVersions.CountCreated, ItemDocVersions.CountNotDisposed, ItemDocVersions.CountNotFinalized)); sb.Append(Counts(ItemInfo.CountCreated, ItemInfo.CountNotDisposed, ItemInfo.CountNotFinalized)); sb.Append(Counts(ItemInfoList.CountCreated, ItemInfoList.CountNotDisposed, ItemInfoList.CountNotFinalized)); sb.Append(Counts(ItemPart.CountCreated, ItemPart.CountNotDisposed, ItemPart.CountNotFinalized)); sb.Append(Counts(ItemParts.CountCreated, ItemParts.CountNotDisposed, ItemParts.CountNotFinalized)); sb.Append(Counts(ItemTransitions_RangeID.CountCreated, ItemTransitions_RangeID.CountNotDisposed, ItemTransitions_RangeID.CountNotFinalized)); sb.Append(Counts(ItemTransitions_ToID.CountCreated, ItemTransitions_ToID.CountNotDisposed, ItemTransitions_ToID.CountNotFinalized)); sb.Append(Counts(ItemTransition_RangeID.CountCreated, ItemTransition_RangeID.CountNotDisposed, ItemTransition_RangeID.CountNotFinalized)); sb.Append(Counts(ItemTransition_ToID.CountCreated, ItemTransition_ToID.CountNotDisposed, ItemTransition_ToID.CountNotFinalized)); sb.Append(Counts(Membership.CountCreated, Membership.CountNotDisposed, Membership.CountNotFinalized)); sb.Append(Counts(MembershipInfo.CountCreated, MembershipInfo.CountNotDisposed, MembershipInfo.CountNotFinalized)); sb.Append(Counts(MembershipInfoList.CountCreated, MembershipInfoList.CountNotDisposed, MembershipInfoList.CountNotFinalized)); //sb.Append(Counts(NextItems.CountCreated, NextItems.CountNotDisposed, NextItems.CountNotFinalized)); sb.Append(Counts(Part.CountCreated, Part.CountNotDisposed, Part.CountNotFinalized)); sb.Append(Counts(PartAudit.CountCreated, PartAudit.CountNotDisposed, PartAudit.CountNotFinalized)); sb.Append(Counts(PartAuditInfo.CountCreated, PartAuditInfo.CountNotDisposed, PartAuditInfo.CountNotFinalized)); sb.Append(Counts(PartAuditInfoList.CountCreated, PartAuditInfoList.CountNotDisposed, PartAuditInfoList.CountNotFinalized)); sb.Append(Counts(PartInfo.CountCreated, PartInfo.CountNotDisposed, PartInfo.CountNotFinalized)); sb.Append(Counts(PartInfoList.CountCreated, PartInfoList.CountNotDisposed, PartInfoList.CountNotFinalized)); sb.Append(Counts(Pdf.CountCreated, Pdf.CountNotDisposed, Pdf.CountNotFinalized)); sb.Append(Counts(PdfInfo.CountCreated, PdfInfo.CountNotDisposed, PdfInfo.CountNotFinalized)); sb.Append(Counts(PdfInfoList.CountCreated, PdfInfoList.CountNotDisposed, PdfInfoList.CountNotFinalized)); sb.Append(Counts(Permission.CountCreated, Permission.CountNotDisposed, Permission.CountNotFinalized)); sb.Append(Counts(PermissionInfo.CountCreated, PermissionInfo.CountNotDisposed, PermissionInfo.CountNotFinalized)); sb.Append(Counts(PermissionInfoList.CountCreated, PermissionInfoList.CountNotDisposed, PermissionInfoList.CountNotFinalized)); sb.Append(Counts(Revision.CountCreated, Revision.CountNotDisposed, Revision.CountNotFinalized)); sb.Append(Counts(RevisionCheck.CountCreated, RevisionCheck.CountNotDisposed, RevisionCheck.CountNotFinalized)); sb.Append(Counts(RevisionChecks.CountCreated, RevisionChecks.CountNotDisposed, RevisionChecks.CountNotFinalized)); sb.Append(Counts(RevisionInfo.CountCreated, RevisionInfo.CountNotDisposed, RevisionInfo.CountNotFinalized)); sb.Append(Counts(RevisionInfoList.CountCreated, RevisionInfoList.CountNotDisposed, RevisionInfoList.CountNotFinalized)); sb.Append(Counts(RevisionVersion.CountCreated, RevisionVersion.CountNotDisposed, RevisionVersion.CountNotFinalized)); sb.Append(Counts(RevisionVersions.CountCreated, RevisionVersions.CountNotDisposed, RevisionVersions.CountNotFinalized)); sb.Append(Counts(RODb.CountCreated, RODb.CountNotDisposed, RODb.CountNotFinalized)); sb.Append(Counts(RODbDROUsage.CountCreated, RODbDROUsage.CountNotDisposed, RODbDROUsage.CountNotFinalized)); sb.Append(Counts(RODbDROUsages.CountCreated, RODbDROUsages.CountNotDisposed, RODbDROUsages.CountNotFinalized)); sb.Append(Counts(RODbInfo.CountCreated, RODbInfo.CountNotDisposed, RODbInfo.CountNotFinalized)); sb.Append(Counts(RODbInfoList.CountCreated, RODbInfoList.CountNotDisposed, RODbInfoList.CountNotFinalized)); sb.Append(Counts(RODbROFst.CountCreated, RODbROFst.CountNotDisposed, RODbROFst.CountNotFinalized)); sb.Append(Counts(RODbROFsts.CountCreated, RODbROFsts.CountNotDisposed, RODbROFsts.CountNotFinalized)); sb.Append(Counts(RODbROImage.CountCreated, RODbROImage.CountNotDisposed, RODbROImage.CountNotFinalized)); sb.Append(Counts(RODbROImages.CountCreated, RODbROImages.CountNotDisposed, RODbROImages.CountNotFinalized)); sb.Append(Counts(RODbRoUsage.CountCreated, RODbRoUsage.CountNotDisposed, RODbRoUsage.CountNotFinalized)); sb.Append(Counts(RODbRoUsages.CountCreated, RODbRoUsages.CountNotDisposed, RODbRoUsages.CountNotFinalized)); sb.Append(Counts(ROFst.CountCreated, ROFst.CountNotDisposed, ROFst.CountNotFinalized)); sb.Append(Counts(ROFstAssociation.CountCreated, ROFstAssociation.CountNotDisposed, ROFstAssociation.CountNotFinalized)); sb.Append(Counts(ROFstAssociations.CountCreated, ROFstAssociations.CountNotDisposed, ROFstAssociations.CountNotFinalized)); sb.Append(Counts(ROFstFigure.CountCreated, ROFstFigure.CountNotDisposed, ROFstFigure.CountNotFinalized)); sb.Append(Counts(ROFstFigures.CountCreated, ROFstFigures.CountNotDisposed, ROFstFigures.CountNotFinalized)); sb.Append(Counts(ROFstInfo.CountCreated, ROFstInfo.CountNotDisposed, ROFstInfo.CountNotFinalized)); sb.Append(Counts(ROFstInfoList.CountCreated, ROFstInfoList.CountNotDisposed, ROFstInfoList.CountNotFinalized)); sb.Append(Counts(ROImage.CountCreated, ROImage.CountNotDisposed, ROImage.CountNotFinalized)); sb.Append(Counts(ROImageFigure.CountCreated, ROImageFigure.CountNotDisposed, ROImageFigure.CountNotFinalized)); sb.Append(Counts(ROImageFigures.CountCreated, ROImageFigures.CountNotDisposed, ROImageFigures.CountNotFinalized)); sb.Append(Counts(ROImageInfo.CountCreated, ROImageInfo.CountNotDisposed, ROImageInfo.CountNotFinalized)); sb.Append(Counts(ROImageInfoList.CountCreated, ROImageInfoList.CountNotDisposed, ROImageInfoList.CountNotFinalized)); sb.Append(Counts(Role.CountCreated, Role.CountNotDisposed, Role.CountNotFinalized)); sb.Append(Counts(RoleAssignment.CountCreated, RoleAssignment.CountNotDisposed, RoleAssignment.CountNotFinalized)); sb.Append(Counts(RoleAssignments.CountCreated, RoleAssignments.CountNotDisposed, RoleAssignments.CountNotFinalized)); sb.Append(Counts(RoleInfo.CountCreated, RoleInfo.CountNotDisposed, RoleInfo.CountNotFinalized)); sb.Append(Counts(RoleInfoList.CountCreated, RoleInfoList.CountNotDisposed, RoleInfoList.CountNotFinalized)); sb.Append(Counts(RolePermission.CountCreated, RolePermission.CountNotDisposed, RolePermission.CountNotFinalized)); sb.Append(Counts(RolePermissions.CountCreated, RolePermissions.CountNotDisposed, RolePermissions.CountNotFinalized)); sb.Append(Counts(RoUsage.CountCreated, RoUsage.CountNotDisposed, RoUsage.CountNotFinalized)); sb.Append(Counts(RoUsageInfo.CountCreated, RoUsageInfo.CountNotDisposed, RoUsageInfo.CountNotFinalized)); sb.Append(Counts(RoUsageInfoList.CountCreated, RoUsageInfoList.CountNotDisposed, RoUsageInfoList.CountNotFinalized)); sb.Append(Counts(Stage.CountCreated, Stage.CountNotDisposed, Stage.CountNotFinalized)); sb.Append(Counts(StageCheck.CountCreated, StageCheck.CountNotDisposed, StageCheck.CountNotFinalized)); sb.Append(Counts(StageChecks.CountCreated, StageChecks.CountNotDisposed, StageChecks.CountNotFinalized)); sb.Append(Counts(StageInfo.CountCreated, StageInfo.CountNotDisposed, StageInfo.CountNotFinalized)); sb.Append(Counts(StageInfoList.CountCreated, StageInfoList.CountNotDisposed, StageInfoList.CountNotFinalized)); sb.Append(Counts(StageVersion.CountCreated, StageVersion.CountNotDisposed, StageVersion.CountNotFinalized)); sb.Append(Counts(StageVersions.CountCreated, StageVersions.CountNotDisposed, StageVersions.CountNotFinalized)); sb.Append(Counts(Transition.CountCreated, Transition.CountNotDisposed, Transition.CountNotFinalized)); sb.Append(Counts(TransitionInfo.CountCreated, TransitionInfo.CountNotDisposed, TransitionInfo.CountNotFinalized)); sb.Append(Counts(TransitionInfoList.CountCreated, TransitionInfoList.CountNotDisposed, TransitionInfoList.CountNotFinalized)); sb.Append(Counts(User.CountCreated, User.CountNotDisposed, User.CountNotFinalized)); sb.Append(Counts(UserInfo.CountCreated, UserInfo.CountNotDisposed, UserInfo.CountNotFinalized)); sb.Append(Counts(UserInfoList.CountCreated, UserInfoList.CountNotDisposed, UserInfoList.CountNotFinalized)); sb.Append(Counts(UserMembership.CountCreated, UserMembership.CountNotDisposed, UserMembership.CountNotFinalized)); sb.Append(Counts(UserMemberships.CountCreated, UserMemberships.CountNotDisposed, UserMemberships.CountNotFinalized)); sb.Append(Counts(Version.CountCreated, Version.CountNotDisposed, Version.CountNotFinalized)); sb.Append(Counts(VersionInfo.CountCreated, VersionInfo.CountNotDisposed, VersionInfo.CountNotFinalized)); sb.Append(Counts(VersionInfoList.CountCreated, VersionInfoList.CountNotDisposed, VersionInfoList.CountNotFinalized)); sb.Append(Counts(ZContent.CountCreated, ZContent.CountNotDisposed, ZContent.CountNotFinalized)); sb.Append(Counts(ZContentInfo.CountCreated, ZContentInfo.CountNotDisposed, ZContentInfo.CountNotFinalized)); sb.Append(Counts(ZTransition.CountCreated, ZTransition.CountNotDisposed, ZTransition.CountNotFinalized)); sb.Append(Counts(ZTransitionInfo.CountCreated, ZTransitionInfo.CountNotDisposed, ZTransitionInfo.CountNotFinalized)); return sb.ToString(); } } private static string Counts(Dictionary> cache) { int count = 0; foreach (List lst in cache.Values) count += lst.Count; if (count == 0) return ""; string output = typeof(T).Name; output += "\t" + cache.Count; output += "\t" + count + "\r\n"; return output; } private static string Counts(int count) { if (count == 0) return ""; string output = typeof(T).Name; output += "\t" + count + "\r\n"; return output; } private static string Counts(int countNotDisposed, int countNotFinalized) { if (countNotDisposed == 0 && countNotFinalized == 0) return ""; string output = typeof(T).Name; output += "\t" + countNotDisposed + "\t" + countNotFinalized + "\r\n"; return output; } private static string Counts(int countCreated, int countNotDisposed, int countNotFinalized) { if (countCreated == 0) return ""; string output = typeof(T).Name; output += "\t" + countCreated + "\t" + countNotDisposed + "\t" + countNotFinalized + "\r\n"; return output; } } public class myReverserClass : IComparer { // Calls CaseInsensitiveComparer.Compare with the parameters reversed. int IComparer.Compare(int x, int y) { return y.CompareTo(x); } } #region Stack public partial class Content { private static List _MyStack = new List(); public static string MyStack { get { if (!CSLACache.SaveStack) return ""; Dictionary stackCount = new Dictionary(); foreach (string key in _CacheByPrimaryKey.Keys) { foreach (Content c in _CacheByPrimaryKey[key]) { if (!stackCount.ContainsKey(c.StackIndex)) stackCount.Add(c.StackIndex, 1); else stackCount[c.StackIndex]++; } } IComparer myComparer = new myReverserClass(); SortedDictionary> countStack = new SortedDictionary>(myComparer); foreach (int ind in stackCount.Keys) { int key = stackCount[ind]; if (!countStack.ContainsKey(key)) countStack.Add(key, new List()); countStack[key].Add(_MyStack[ind]); } StringBuilder sb = new StringBuilder(); foreach (int cnt in countStack.Keys) foreach (string stk in countStack[cnt]) sb.Append(string.Format("\r\n{0} occurences\r\n\r\n{1}", cnt, stk)); return sb.ToString(); } } private static int StaticStackIndex { get { if (!CSLACache.SaveStack) return 0; string stk = vlnStackTrace.GetStack(false); if (!_MyStack.Contains(stk)) _MyStack.Add(stk); return _MyStack.IndexOf(stk); } } private int _StackIndex = StaticStackIndex; public int StackIndex { get { return _StackIndex; } } } public partial class ContentInfo { private static List _MyStack = new List(); public static string MyStack { get { if (!CSLACache.SaveStack) return ""; Dictionary stackCount = new Dictionary(); foreach (string key in _CacheByPrimaryKey.Keys) { foreach (ContentInfo ci in _CacheByPrimaryKey[key]) { if (!stackCount.ContainsKey(ci.StackIndex)) stackCount.Add(ci.StackIndex, 1); else stackCount[ci.StackIndex]++; } } IComparer myComparer = new myReverserClass(); SortedDictionary> countStack = new SortedDictionary>(myComparer); foreach (int ind in stackCount.Keys) { int key = stackCount[ind]; if (!countStack.ContainsKey(key)) countStack.Add(key, new List()); countStack[key].Add(_MyStack[ind]); } StringBuilder sb = new StringBuilder(); foreach (int cnt in countStack.Keys) foreach (string stk in countStack[cnt]) sb.Append(string.Format("\r\n{0} occurences\r\n\r\n{1}", cnt, stk)); return sb.ToString(); } } private static int StaticStackIndex { get { if (!CSLACache.SaveStack) return 0; string stk = vlnStackTrace.GetStack(false); if (!_MyStack.Contains(stk)) _MyStack.Add(stk); return _MyStack.IndexOf(stk); } } private int _StackIndex = StaticStackIndex; public int StackIndex { get { return _StackIndex; } } } public partial class DocVersionInfo { private static List _MyStack = new List(); public static string MyStack { get { if (!CSLACache.SaveStack) return ""; Dictionary stackCount = new Dictionary(); foreach (string key in _CacheByPrimaryKey.Keys) { foreach (DocVersionInfo dvi in _CacheByPrimaryKey[key]) { if (!stackCount.ContainsKey(dvi.StackIndex)) stackCount.Add(dvi.StackIndex, 1); else stackCount[dvi.StackIndex]++; } } IComparer myComparer = new myReverserClass(); SortedDictionary> countStack = new SortedDictionary>(myComparer); foreach (int ind in stackCount.Keys) { int key = stackCount[ind]; if (!countStack.ContainsKey(key)) countStack.Add(key, new List()); countStack[key].Add(_MyStack[ind]); } StringBuilder sb = new StringBuilder(); foreach (int cnt in countStack.Keys) foreach (string stk in countStack[cnt]) sb.Append(string.Format("\r\n{0} occurences\r\n\r\n{1}", cnt, stk)); return sb.ToString(); } } private static int StaticStackIndex { get { if (!CSLACache.SaveStack) return 0; string stk = vlnStackTrace.GetStack(false); if (!_MyStack.Contains(stk)) _MyStack.Add(stk); return _MyStack.IndexOf(stk); } } private int _StackIndex = StaticStackIndex; public int StackIndex { get { return _StackIndex; } } } public partial class PartInfo { public static HashSet CacheList { get { if (!CSLACache.RestoreCache) return null; ConvertListToDictionary(); HashSet lst = new HashSet(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (PartInfo pi in _CacheByPrimaryKey[key]) lst.Add(pi.MyPartInfoUnique); return lst; } } public static void RestoreCacheList(HashSet cacheList) { if (cacheList == null) return; ConvertListToDictionary(); List piList = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (PartInfo pi in _CacheByPrimaryKey[key]) { if (!cacheList.Contains(pi.MyPartInfoUnique)) piList.Add(pi); } while (piList.Count > 0) { PartInfo pi = piList[0]; piList.RemoveAt(0); pi.Dispose(); } } } #endregion #region Restore Cache public partial class ContentInfo { // B2018-099: CacheLists where changed from List to HashSet because use for preventing out of memory errors // was very slow when using List (HashSets are faster for large lists). The ContentInfo, ItemInfo and PartInfo // CacheLists were changed. public static HashSet CacheList { get { if (!CSLACache.RestoreCache) return null; ConvertListToDictionary(); HashSet lst = new HashSet(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (ContentInfo ci in _CacheByPrimaryKey[key]) lst.Add(ci.MyContentInfoUnique); return lst; } } public static void RestoreCacheList(HashSet cacheList) { if (cacheList == null) return; // if 'initialized' through CacheList above, it won't be null. ConvertListToDictionary(); List ciList = new List(); foreach (string key in _CacheByPrimaryKey.Keys) // KBR THIS is what takes so long for contents! foreach (ContentInfo ci in _CacheByPrimaryKey[key]) { if (!cacheList.Contains(ci.MyContentInfoUnique)) ciList.Add(ci); } while (ciList.Count > 0) { ContentInfo ci = ciList[0]; ciList.RemoveAt(0); ci.Dispose(); } } } public partial class DocVersionInfo { public static List CacheList { get { if (!CSLACache.RestoreCache) return null; ConvertListToDictionary(); List lst = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (DocVersionInfo dvi in _CacheByPrimaryKey[key]) lst.Add(dvi.MyDocVersionInfoUnique); return lst; } } public static void RestoreCacheList(List cacheList) { if (cacheList == null) return; ConvertListToDictionary(); List dviList = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (DocVersionInfo dvi in _CacheByPrimaryKey[key]) { if (!cacheList.Contains(dvi.MyDocVersionInfoUnique)) dviList.Add(dvi); } while (dviList.Count > 0) { DocVersionInfo dvi = dviList[0]; dviList.RemoveAt(0); dvi.Dispose(); } } } public partial class EntryInfo { public static List CacheList { get { if (!CSLACache.RestoreCache) return null; ConvertListToDictionary(); List lst = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (EntryInfo ei in _CacheByPrimaryKey[key]) lst.Add(ei.MyEntryInfoUnique); return lst; } } public static void RestoreCacheList(List cacheList) { if (cacheList == null) return; ConvertListToDictionary(); List eiList = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (EntryInfo ei in _CacheByPrimaryKey[key]) { if (!cacheList.Contains(ei.MyEntryInfoUnique)) eiList.Add(ei); } while (eiList.Count > 0) { EntryInfo ei = eiList[0]; eiList.RemoveAt(0); ei.Dispose(); } } } public partial class ItemInfo { public static HashSet CacheList { get { if (!CSLACache.RestoreCache) return null; ConvertListToDictionary(); HashSet lst = new HashSet(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (ItemInfo ii in _CacheByPrimaryKey[key]) lst.Add(ii.MyItemInfoUnique); return lst; } } public static void RestoreCacheList(HashSet cacheList) { if (cacheList == null) return; ConvertListToDictionary(); List iiList = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (ItemInfo ii in _CacheByPrimaryKey[key]) { if (!cacheList.Contains(ii.MyItemInfoUnique)) iiList.Add(ii); } while (iiList.Count > 0) { ItemInfo ii = iiList[0]; iiList.RemoveAt(0); ii.Dispose(); } } } public partial class PdfInfo { public static List CacheList { get { if (!CSLACache.RestoreCache) return null; ConvertListToDictionary(); List lst = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (PdfInfo pi in _CacheByPrimaryKey[key]) lst.Add(pi.MyPdfInfoUnique); return lst; } } public static void RestoreCacheList(List cacheList) { if (cacheList == null) return; ConvertListToDictionary(); List piList = new List(); foreach (string key in _CacheByPrimaryKey.Keys) foreach (PdfInfo pi in _CacheByPrimaryKey[key]) { if (!cacheList.Contains(pi.MyPdfInfoUnique)) piList.Add(pi); } while (piList.Count > 0) { PdfInfo pi = piList[0]; piList.RemoveAt(0); pi.Dispose(); } } } #endregion }