843 lines
58 KiB
C#
843 lines
58 KiB
C#
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>(Annotation.CountNotDisposed, Annotation.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationAudit>(AnnotationAudit.CountNotDisposed, AnnotationAudit.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationAuditInfo>(AnnotationAuditInfo.CountNotDisposed, AnnotationAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationAuditInfoList>(AnnotationAuditInfoList.CountNotDisposed, AnnotationAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationInfo>(AnnotationInfo.CountNotDisposed, AnnotationInfo.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationInfoList>(AnnotationInfoList.CountNotDisposed, AnnotationInfoList.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationType>(AnnotationType.CountNotDisposed, AnnotationType.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeAnnotation>(AnnotationTypeAnnotation.CountNotDisposed, AnnotationTypeAnnotation.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeAnnotations>(AnnotationTypeAnnotations.CountNotDisposed, AnnotationTypeAnnotations.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeInfo>(AnnotationTypeInfo.CountNotDisposed, AnnotationTypeInfo.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeInfoList>(AnnotationTypeInfoList.CountNotDisposed, AnnotationTypeInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Assignment>(Assignment.CountNotDisposed, Assignment.CountNotFinalized));
|
|
sb.Append(Counts<AssignmentInfo>(AssignmentInfo.CountNotDisposed, AssignmentInfo.CountNotFinalized));
|
|
sb.Append(Counts<AssignmentInfoList>(AssignmentInfoList.CountNotDisposed, AssignmentInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Association>(Association.CountNotDisposed, Association.CountNotFinalized));
|
|
sb.Append(Counts<AssociationInfo>(AssociationInfo.CountNotDisposed, AssociationInfo.CountNotFinalized));
|
|
sb.Append(Counts<AssociationInfoList>(AssociationInfoList.CountNotDisposed, AssociationInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Check>(Check.CountNotDisposed, Check.CountNotFinalized));
|
|
sb.Append(Counts<CheckInfo>(CheckInfo.CountNotDisposed, CheckInfo.CountNotFinalized));
|
|
sb.Append(Counts<CheckInfoList>(CheckInfoList.CountNotDisposed, CheckInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ChildFolders>(ChildFolders.CountNotDisposed, ChildFolders.CountNotFinalized));
|
|
sb.Append(Counts<ChildFormats>(ChildFormats.CountNotDisposed, ChildFormats.CountNotFinalized));
|
|
sb.Append(Counts<Connection>(Connection.CountNotDisposed, Connection.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionFolder>(ConnectionFolder.CountNotDisposed, ConnectionFolder.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionFolders>(ConnectionFolders.CountNotDisposed, ConnectionFolders.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionInfo>(ConnectionInfo.CountNotDisposed, ConnectionInfo.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionInfoList>(ConnectionInfoList.CountNotDisposed, ConnectionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Content>(Content.CountNotDisposed, Content.CountNotFinalized));
|
|
sb.Append(Counts<ContentAudit>(ContentAudit.CountNotDisposed, ContentAudit.CountNotFinalized));
|
|
sb.Append(Counts<ContentAuditInfo>(ContentAuditInfo.CountNotDisposed, ContentAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<ContentAuditInfoList>(ContentAuditInfoList.CountNotDisposed, ContentAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ContentDetail>(ContentDetail.CountNotDisposed, ContentDetail.CountNotFinalized));
|
|
sb.Append(Counts<ContentDetails>(ContentDetails.CountNotDisposed, ContentDetails.CountNotFinalized));
|
|
sb.Append(Counts<ContentInfo>(ContentInfo.CountNotDisposed, ContentInfo.CountNotFinalized));
|
|
sb.Append(Counts<ContentInfoList>(ContentInfoList.CountNotDisposed, ContentInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ContentItem>(ContentItem.CountNotDisposed, ContentItem.CountNotFinalized));
|
|
sb.Append(Counts<ContentItems>(ContentItems.CountNotDisposed, ContentItems.CountNotFinalized));
|
|
sb.Append(Counts<ContentPart>(ContentPart.CountNotDisposed, ContentPart.CountNotFinalized));
|
|
sb.Append(Counts<ContentParts>(ContentParts.CountNotDisposed, ContentParts.CountNotFinalized));
|
|
sb.Append(Counts<ContentRoUsage>(ContentRoUsage.CountNotDisposed, ContentRoUsage.CountNotFinalized));
|
|
sb.Append(Counts<ContentRoUsages>(ContentRoUsages.CountNotDisposed, ContentRoUsages.CountNotFinalized));
|
|
sb.Append(Counts<ContentTransition>(ContentTransition.CountNotDisposed, ContentTransition.CountNotFinalized));
|
|
sb.Append(Counts<ContentTransitions>(ContentTransitions.CountNotDisposed, ContentTransitions.CountNotFinalized));
|
|
sb.Append(Counts<Detail>(Detail.CountNotDisposed, Detail.CountNotFinalized));
|
|
sb.Append(Counts<DetailInfo>(DetailInfo.CountNotDisposed, DetailInfo.CountNotFinalized));
|
|
sb.Append(Counts<DetailInfoList>(DetailInfoList.CountNotDisposed, DetailInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Document>(Document.CountNotDisposed, Document.CountNotFinalized));
|
|
sb.Append(Counts<DocumentAudit>(DocumentAudit.CountNotDisposed, DocumentAudit.CountNotFinalized));
|
|
sb.Append(Counts<DocumentAuditInfo>(DocumentAuditInfo.CountNotDisposed, DocumentAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<DocumentAuditInfoList>(DocumentAuditInfoList.CountNotDisposed, DocumentAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<DocumentDROUsage>(DocumentDROUsage.CountNotDisposed, DocumentDROUsage.CountNotFinalized));
|
|
sb.Append(Counts<DocumentDROUsages>(DocumentDROUsages.CountNotDisposed, DocumentDROUsages.CountNotFinalized));
|
|
sb.Append(Counts<DocumentEntries>(DocumentEntries.CountNotDisposed, DocumentEntries.CountNotFinalized));
|
|
sb.Append(Counts<DocumentEntry>(DocumentEntry.CountNotDisposed, DocumentEntry.CountNotFinalized));
|
|
sb.Append(Counts<DocumentInfo>(DocumentInfo.CountNotDisposed, DocumentInfo.CountNotFinalized));
|
|
sb.Append(Counts<DocumentInfoList>(DocumentInfoList.CountNotDisposed, DocumentInfoList.CountNotFinalized));
|
|
sb.Append(Counts<DocumentPdf>(DocumentPdf.CountNotDisposed, DocumentPdf.CountNotFinalized));
|
|
sb.Append(Counts<DocumentPdfs>(DocumentPdfs.CountNotDisposed, DocumentPdfs.CountNotFinalized));
|
|
sb.Append(Counts<DocVersion>(DocVersion.CountNotDisposed, DocVersion.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionAssociation>(DocVersionAssociation.CountNotDisposed, DocVersionAssociation.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionAssociations>(DocVersionAssociations.CountNotDisposed, DocVersionAssociations.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionInfo>(DocVersionInfo.CountNotDisposed, DocVersionInfo.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionInfoList>(DocVersionInfoList.CountNotDisposed, DocVersionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<DROUsage>(DROUsage.CountNotDisposed, DROUsage.CountNotFinalized));
|
|
sb.Append(Counts<DROUsageInfo>(DROUsageInfo.CountNotDisposed, DROUsageInfo.CountNotFinalized));
|
|
sb.Append(Counts<DROUsageInfoList>(DROUsageInfoList.CountNotDisposed, DROUsageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Entry>(Entry.CountNotDisposed, Entry.CountNotFinalized));
|
|
sb.Append(Counts<EntryAudit>(EntryAudit.CountNotDisposed, EntryAudit.CountNotFinalized));
|
|
sb.Append(Counts<EntryAuditInfo>(EntryAuditInfo.CountNotDisposed, EntryAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<EntryAuditInfoList>(EntryAuditInfoList.CountNotDisposed, EntryAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<EntryInfo>(EntryInfo.CountNotDisposed, EntryInfo.CountNotFinalized));
|
|
sb.Append(Counts<EntryInfoList>(EntryInfoList.CountNotDisposed, EntryInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Figure>(Figure.CountNotDisposed, Figure.CountNotFinalized));
|
|
sb.Append(Counts<FigureInfo>(FigureInfo.CountNotDisposed, FigureInfo.CountNotFinalized));
|
|
sb.Append(Counts<FigureInfoList>(FigureInfoList.CountNotDisposed, FigureInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Folder>(Folder.CountNotDisposed, Folder.CountNotFinalized));
|
|
sb.Append(Counts<FolderAssignment>(FolderAssignment.CountNotDisposed, FolderAssignment.CountNotFinalized));
|
|
sb.Append(Counts<FolderAssignments>(FolderAssignments.CountNotDisposed, FolderAssignments.CountNotFinalized));
|
|
sb.Append(Counts<FolderDocVersion>(FolderDocVersion.CountNotDisposed, FolderDocVersion.CountNotFinalized));
|
|
sb.Append(Counts<FolderDocVersions>(FolderDocVersions.CountNotDisposed, FolderDocVersions.CountNotFinalized));
|
|
sb.Append(Counts<FolderInfo>(FolderInfo.CountNotDisposed, FolderInfo.CountNotFinalized));
|
|
sb.Append(Counts<FolderInfoList>(FolderInfoList.CountNotDisposed, FolderInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Format>(Format.CountNotDisposed, Format.CountNotFinalized));
|
|
sb.Append(Counts<FormatContent>(FormatContent.CountNotDisposed, FormatContent.CountNotFinalized));
|
|
sb.Append(Counts<FormatContents>(FormatContents.CountNotDisposed, FormatContents.CountNotFinalized));
|
|
sb.Append(Counts<FormatDocVersion>(FormatDocVersion.CountNotDisposed, FormatDocVersion.CountNotFinalized));
|
|
sb.Append(Counts<FormatDocVersions>(FormatDocVersions.CountNotDisposed, FormatDocVersions.CountNotFinalized));
|
|
sb.Append(Counts<FormatFolder>(FormatFolder.CountNotDisposed, FormatFolder.CountNotFinalized));
|
|
sb.Append(Counts<FormatFolders>(FormatFolders.CountNotDisposed, FormatFolders.CountNotFinalized));
|
|
sb.Append(Counts<FormatInfo>(FormatInfo.CountNotDisposed, FormatInfo.CountNotFinalized));
|
|
sb.Append(Counts<FormatInfoList>(FormatInfoList.CountNotDisposed, FormatInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Grid>(Grid.CountNotDisposed, Grid.CountNotFinalized));
|
|
sb.Append(Counts<GridAudit>(GridAudit.CountNotDisposed, GridAudit.CountNotFinalized));
|
|
sb.Append(Counts<GridAuditInfo>(GridAuditInfo.CountNotDisposed, GridAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<GridAuditInfoList>(GridAuditInfoList.CountNotDisposed, GridAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<GridInfo>(GridInfo.CountNotDisposed, GridInfo.CountNotFinalized));
|
|
sb.Append(Counts<Group>(Group.CountNotDisposed, Group.CountNotFinalized));
|
|
sb.Append(Counts<GroupAssignment>(GroupAssignment.CountNotDisposed, GroupAssignment.CountNotFinalized));
|
|
sb.Append(Counts<GroupAssignments>(GroupAssignments.CountNotDisposed, GroupAssignments.CountNotFinalized));
|
|
sb.Append(Counts<GroupInfo>(GroupInfo.CountNotDisposed, GroupInfo.CountNotFinalized));
|
|
sb.Append(Counts<GroupInfoList>(GroupInfoList.CountNotDisposed, GroupInfoList.CountNotFinalized));
|
|
sb.Append(Counts<GroupMembership>(GroupMembership.CountNotDisposed, GroupMembership.CountNotFinalized));
|
|
sb.Append(Counts<GroupMemberships>(GroupMemberships.CountNotDisposed, GroupMemberships.CountNotFinalized));
|
|
sb.Append(Counts<Image>(Image.CountNotDisposed, Image.CountNotFinalized));
|
|
sb.Append(Counts<ImageAudit>(ImageAudit.CountNotDisposed, ImageAudit.CountNotFinalized));
|
|
sb.Append(Counts<ImageAuditInfo>(ImageAuditInfo.CountNotDisposed, ImageAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<ImageAuditInfoList>(ImageAuditInfoList.CountNotDisposed, ImageAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ImageInfo>(ImageInfo.CountNotDisposed, ImageInfo.CountNotFinalized));
|
|
sb.Append(Counts<Item>(Item.CountNotDisposed, Item.CountNotFinalized));
|
|
sb.Append(Counts<ItemAnnotation>(ItemAnnotation.CountNotDisposed, ItemAnnotation.CountNotFinalized));
|
|
sb.Append(Counts<ItemAnnotations>(ItemAnnotations.CountNotDisposed, ItemAnnotations.CountNotFinalized));
|
|
sb.Append(Counts<ItemAudit>(ItemAudit.CountNotDisposed, ItemAudit.CountNotFinalized));
|
|
sb.Append(Counts<ItemAuditInfo>(ItemAuditInfo.CountNotDisposed, ItemAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<ItemAuditInfoList>(ItemAuditInfoList.CountNotDisposed, ItemAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ItemDocVersion>(ItemDocVersion.CountNotDisposed, ItemDocVersion.CountNotFinalized));
|
|
sb.Append(Counts<ItemDocVersions>(ItemDocVersions.CountNotDisposed, ItemDocVersions.CountNotFinalized));
|
|
sb.Append(Counts<ItemInfo>(ItemInfo.CountNotDisposed, ItemInfo.CountNotFinalized));
|
|
sb.Append(Counts<ItemInfoList>(ItemInfoList.CountNotDisposed, ItemInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ItemPart>(ItemPart.CountNotDisposed, ItemPart.CountNotFinalized));
|
|
sb.Append(Counts<ItemParts>(ItemParts.CountNotDisposed, ItemParts.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransitions_RangeID>(ItemTransitions_RangeID.CountNotDisposed, ItemTransitions_RangeID.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransitions_ToID>(ItemTransitions_ToID.CountNotDisposed, ItemTransitions_ToID.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransition_RangeID>(ItemTransition_RangeID.CountNotDisposed, ItemTransition_RangeID.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransition_ToID>(ItemTransition_ToID.CountNotDisposed, ItemTransition_ToID.CountNotFinalized));
|
|
sb.Append(Counts<Membership>(Membership.CountNotDisposed, Membership.CountNotFinalized));
|
|
sb.Append(Counts<MembershipInfo>(MembershipInfo.CountNotDisposed, MembershipInfo.CountNotFinalized));
|
|
sb.Append(Counts<MembershipInfoList>(MembershipInfoList.CountNotDisposed, MembershipInfoList.CountNotFinalized));
|
|
//sb.Append(Counts<NextItems>(NextItems.CountNotDisposed, NextItems.CountNotFinalized));
|
|
sb.Append(Counts<Part>(Part.CountNotDisposed, Part.CountNotFinalized));
|
|
sb.Append(Counts<PartAudit>(PartAudit.CountNotDisposed, PartAudit.CountNotFinalized));
|
|
sb.Append(Counts<PartAuditInfo>(PartAuditInfo.CountNotDisposed, PartAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<PartAuditInfoList>(PartAuditInfoList.CountNotDisposed, PartAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<PartInfo>(PartInfo.CountNotDisposed, PartInfo.CountNotFinalized));
|
|
sb.Append(Counts<PartInfoList>(PartInfoList.CountNotDisposed, PartInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Pdf>(Pdf.CountNotDisposed, Pdf.CountNotFinalized));
|
|
sb.Append(Counts<PdfInfo>(PdfInfo.CountNotDisposed, PdfInfo.CountNotFinalized));
|
|
sb.Append(Counts<PdfInfoList>(PdfInfoList.CountNotDisposed, PdfInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Permission>(Permission.CountNotDisposed, Permission.CountNotFinalized));
|
|
sb.Append(Counts<PermissionInfo>(PermissionInfo.CountNotDisposed, PermissionInfo.CountNotFinalized));
|
|
sb.Append(Counts<PermissionInfoList>(PermissionInfoList.CountNotDisposed, PermissionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Revision>(Revision.CountNotDisposed, Revision.CountNotFinalized));
|
|
sb.Append(Counts<RevisionCheck>(RevisionCheck.CountNotDisposed, RevisionCheck.CountNotFinalized));
|
|
sb.Append(Counts<RevisionChecks>(RevisionChecks.CountNotDisposed, RevisionChecks.CountNotFinalized));
|
|
sb.Append(Counts<RevisionInfo>(RevisionInfo.CountNotDisposed, RevisionInfo.CountNotFinalized));
|
|
sb.Append(Counts<RevisionInfoList>(RevisionInfoList.CountNotDisposed, RevisionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<RevisionVersion>(RevisionVersion.CountNotDisposed, RevisionVersion.CountNotFinalized));
|
|
sb.Append(Counts<RevisionVersions>(RevisionVersions.CountNotDisposed, RevisionVersions.CountNotFinalized));
|
|
sb.Append(Counts<RODb>(RODb.CountNotDisposed, RODb.CountNotFinalized));
|
|
sb.Append(Counts<RODbDROUsage>(RODbDROUsage.CountNotDisposed, RODbDROUsage.CountNotFinalized));
|
|
sb.Append(Counts<RODbDROUsages>(RODbDROUsages.CountNotDisposed, RODbDROUsages.CountNotFinalized));
|
|
sb.Append(Counts<RODbInfo>(RODbInfo.CountNotDisposed, RODbInfo.CountNotFinalized));
|
|
sb.Append(Counts<RODbInfoList>(RODbInfoList.CountNotDisposed, RODbInfoList.CountNotFinalized));
|
|
sb.Append(Counts<RODbROFst>(RODbROFst.CountNotDisposed, RODbROFst.CountNotFinalized));
|
|
sb.Append(Counts<RODbROFsts>(RODbROFsts.CountNotDisposed, RODbROFsts.CountNotFinalized));
|
|
sb.Append(Counts<RODbROImage>(RODbROImage.CountNotDisposed, RODbROImage.CountNotFinalized));
|
|
sb.Append(Counts<RODbROImages>(RODbROImages.CountNotDisposed, RODbROImages.CountNotFinalized));
|
|
sb.Append(Counts<RODbRoUsage>(RODbRoUsage.CountNotDisposed, RODbRoUsage.CountNotFinalized));
|
|
sb.Append(Counts<RODbRoUsages>(RODbRoUsages.CountNotDisposed, RODbRoUsages.CountNotFinalized));
|
|
sb.Append(Counts<ROFst>(ROFst.CountNotDisposed, ROFst.CountNotFinalized));
|
|
sb.Append(Counts<ROFstAssociation>(ROFstAssociation.CountNotDisposed, ROFstAssociation.CountNotFinalized));
|
|
sb.Append(Counts<ROFstAssociations>(ROFstAssociations.CountNotDisposed, ROFstAssociations.CountNotFinalized));
|
|
sb.Append(Counts<ROFstFigure>(ROFstFigure.CountNotDisposed, ROFstFigure.CountNotFinalized));
|
|
sb.Append(Counts<ROFstFigures>(ROFstFigures.CountNotDisposed, ROFstFigures.CountNotFinalized));
|
|
sb.Append(Counts<ROFstInfo>(ROFstInfo.CountNotDisposed, ROFstInfo.CountNotFinalized));
|
|
sb.Append(Counts<ROFstInfoList>(ROFstInfoList.CountNotDisposed, ROFstInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ROImage>(ROImage.CountNotDisposed, ROImage.CountNotFinalized));
|
|
sb.Append(Counts<ROImageFigure>(ROImageFigure.CountNotDisposed, ROImageFigure.CountNotFinalized));
|
|
sb.Append(Counts<ROImageFigures>(ROImageFigures.CountNotDisposed, ROImageFigures.CountNotFinalized));
|
|
sb.Append(Counts<ROImageInfo>(ROImageInfo.CountNotDisposed, ROImageInfo.CountNotFinalized));
|
|
sb.Append(Counts<ROImageInfoList>(ROImageInfoList.CountNotDisposed, ROImageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Role>(Role.CountNotDisposed, Role.CountNotFinalized));
|
|
sb.Append(Counts<RoleAssignment>(RoleAssignment.CountNotDisposed, RoleAssignment.CountNotFinalized));
|
|
sb.Append(Counts<RoleAssignments>(RoleAssignments.CountNotDisposed, RoleAssignments.CountNotFinalized));
|
|
sb.Append(Counts<RoleInfo>(RoleInfo.CountNotDisposed, RoleInfo.CountNotFinalized));
|
|
sb.Append(Counts<RoleInfoList>(RoleInfoList.CountNotDisposed, RoleInfoList.CountNotFinalized));
|
|
sb.Append(Counts<RolePermission>(RolePermission.CountNotDisposed, RolePermission.CountNotFinalized));
|
|
sb.Append(Counts<RolePermissions>(RolePermissions.CountNotDisposed, RolePermissions.CountNotFinalized));
|
|
sb.Append(Counts<RoUsage>(RoUsage.CountNotDisposed, RoUsage.CountNotFinalized));
|
|
sb.Append(Counts<RoUsageInfo>(RoUsageInfo.CountNotDisposed, RoUsageInfo.CountNotFinalized));
|
|
sb.Append(Counts<RoUsageInfoList>(RoUsageInfoList.CountNotDisposed, RoUsageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Stage>(Stage.CountNotDisposed, Stage.CountNotFinalized));
|
|
sb.Append(Counts<StageCheck>(StageCheck.CountNotDisposed, StageCheck.CountNotFinalized));
|
|
sb.Append(Counts<StageChecks>(StageChecks.CountNotDisposed, StageChecks.CountNotFinalized));
|
|
sb.Append(Counts<StageInfo>(StageInfo.CountNotDisposed, StageInfo.CountNotFinalized));
|
|
sb.Append(Counts<StageInfoList>(StageInfoList.CountNotDisposed, StageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<StageVersion>(StageVersion.CountNotDisposed, StageVersion.CountNotFinalized));
|
|
sb.Append(Counts<StageVersions>(StageVersions.CountNotDisposed, StageVersions.CountNotFinalized));
|
|
sb.Append(Counts<Transition>(Transition.CountNotDisposed, Transition.CountNotFinalized));
|
|
sb.Append(Counts<TransitionInfo>(TransitionInfo.CountNotDisposed, TransitionInfo.CountNotFinalized));
|
|
sb.Append(Counts<TransitionInfoList>(TransitionInfoList.CountNotDisposed, TransitionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<User>(User.CountNotDisposed, User.CountNotFinalized));
|
|
sb.Append(Counts<UserInfo>(UserInfo.CountNotDisposed, UserInfo.CountNotFinalized));
|
|
sb.Append(Counts<UserInfoList>(UserInfoList.CountNotDisposed, UserInfoList.CountNotFinalized));
|
|
sb.Append(Counts<UserMembership>(UserMembership.CountNotDisposed, UserMembership.CountNotFinalized));
|
|
sb.Append(Counts<UserMemberships>(UserMemberships.CountNotDisposed, UserMemberships.CountNotFinalized));
|
|
sb.Append(Counts<Version>(Version.CountNotDisposed, Version.CountNotFinalized));
|
|
sb.Append(Counts<VersionInfo>(VersionInfo.CountNotDisposed, VersionInfo.CountNotFinalized));
|
|
sb.Append(Counts<VersionInfoList>(VersionInfoList.CountNotDisposed, VersionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ZContent>(ZContent.CountNotDisposed, ZContent.CountNotFinalized));
|
|
sb.Append(Counts<ZContentInfo>(ZContentInfo.CountNotDisposed, ZContentInfo.CountNotFinalized));
|
|
sb.Append(Counts<ZTransition>(ZTransition.CountNotDisposed, ZTransition.CountNotFinalized));
|
|
sb.Append(Counts<ZTransitionInfo>(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>(Annotation.CountCreated, Annotation.CountNotDisposed, Annotation.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationAudit>(AnnotationAudit.CountCreated, AnnotationAudit.CountNotDisposed, AnnotationAudit.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationAuditInfo>(AnnotationAuditInfo.CountCreated, AnnotationAuditInfo.CountNotDisposed, AnnotationAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationAuditInfoList>(AnnotationAuditInfoList.CountCreated, AnnotationAuditInfoList.CountNotDisposed, AnnotationAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationInfo>(AnnotationInfo.CountCreated, AnnotationInfo.CountNotDisposed, AnnotationInfo.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationInfoList>(AnnotationInfoList.CountCreated, AnnotationInfoList.CountNotDisposed, AnnotationInfoList.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationType>(AnnotationType.CountCreated, AnnotationType.CountNotDisposed, AnnotationType.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeAnnotation>(AnnotationTypeAnnotation.CountCreated, AnnotationTypeAnnotation.CountNotDisposed, AnnotationTypeAnnotation.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeAnnotations>(AnnotationTypeAnnotations.CountCreated, AnnotationTypeAnnotations.CountNotDisposed, AnnotationTypeAnnotations.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeInfo>(AnnotationTypeInfo.CountCreated, AnnotationTypeInfo.CountNotDisposed, AnnotationTypeInfo.CountNotFinalized));
|
|
sb.Append(Counts<AnnotationTypeInfoList>(AnnotationTypeInfoList.CountCreated, AnnotationTypeInfoList.CountNotDisposed, AnnotationTypeInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Assignment>(Assignment.CountCreated, Assignment.CountNotDisposed, Assignment.CountNotFinalized));
|
|
sb.Append(Counts<AssignmentInfo>(AssignmentInfo.CountCreated, AssignmentInfo.CountNotDisposed, AssignmentInfo.CountNotFinalized));
|
|
sb.Append(Counts<AssignmentInfoList>(AssignmentInfoList.CountCreated, AssignmentInfoList.CountNotDisposed, AssignmentInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Association>(Association.CountCreated, Association.CountNotDisposed, Association.CountNotFinalized));
|
|
sb.Append(Counts<AssociationInfo>(AssociationInfo.CountCreated, AssociationInfo.CountNotDisposed, AssociationInfo.CountNotFinalized));
|
|
sb.Append(Counts<AssociationInfoList>(AssociationInfoList.CountCreated, AssociationInfoList.CountNotDisposed, AssociationInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Check>(Check.CountCreated, Check.CountNotDisposed, Check.CountNotFinalized));
|
|
sb.Append(Counts<CheckInfo>(CheckInfo.CountCreated, CheckInfo.CountNotDisposed, CheckInfo.CountNotFinalized));
|
|
sb.Append(Counts<CheckInfoList>(CheckInfoList.CountCreated, CheckInfoList.CountNotDisposed, CheckInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ChildFolders>(ChildFolders.CountCreated, ChildFolders.CountNotDisposed, ChildFolders.CountNotFinalized));
|
|
sb.Append(Counts<ChildFormats>(ChildFormats.CountCreated, ChildFormats.CountNotDisposed, ChildFormats.CountNotFinalized));
|
|
sb.Append(Counts<Connection>(Connection.CountCreated, Connection.CountNotDisposed, Connection.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionFolder>(ConnectionFolder.CountCreated, ConnectionFolder.CountNotDisposed, ConnectionFolder.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionFolders>(ConnectionFolders.CountCreated, ConnectionFolders.CountNotDisposed, ConnectionFolders.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionInfo>(ConnectionInfo.CountCreated, ConnectionInfo.CountNotDisposed, ConnectionInfo.CountNotFinalized));
|
|
sb.Append(Counts<ConnectionInfoList>(ConnectionInfoList.CountCreated, ConnectionInfoList.CountNotDisposed, ConnectionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Content>(Content.CountCreated, Content.CountNotDisposed, Content.CountNotFinalized));
|
|
sb.Append(Counts<ContentAudit>(ContentAudit.CountCreated, ContentAudit.CountNotDisposed, ContentAudit.CountNotFinalized));
|
|
sb.Append(Counts<ContentAuditInfo>(ContentAuditInfo.CountCreated, ContentAuditInfo.CountNotDisposed, ContentAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<ContentAuditInfoList>(ContentAuditInfoList.CountCreated, ContentAuditInfoList.CountNotDisposed, ContentAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ContentDetail>(ContentDetail.CountCreated, ContentDetail.CountNotDisposed, ContentDetail.CountNotFinalized));
|
|
sb.Append(Counts<ContentDetails>(ContentDetails.CountCreated, ContentDetails.CountNotDisposed, ContentDetails.CountNotFinalized));
|
|
sb.Append(Counts<ContentInfo>(ContentInfo.CountCreated, ContentInfo.CountNotDisposed, ContentInfo.CountNotFinalized));
|
|
sb.Append(Counts<ContentInfoList>(ContentInfoList.CountCreated, ContentInfoList.CountNotDisposed, ContentInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ContentItem>(ContentItem.CountCreated, ContentItem.CountNotDisposed, ContentItem.CountNotFinalized));
|
|
sb.Append(Counts<ContentItems>(ContentItems.CountCreated, ContentItems.CountNotDisposed, ContentItems.CountNotFinalized));
|
|
sb.Append(Counts<ContentPart>(ContentPart.CountCreated, ContentPart.CountNotDisposed, ContentPart.CountNotFinalized));
|
|
sb.Append(Counts<ContentParts>(ContentParts.CountCreated, ContentParts.CountNotDisposed, ContentParts.CountNotFinalized));
|
|
sb.Append(Counts<ContentRoUsage>(ContentRoUsage.CountCreated, ContentRoUsage.CountNotDisposed, ContentRoUsage.CountNotFinalized));
|
|
sb.Append(Counts<ContentRoUsages>(ContentRoUsages.CountCreated, ContentRoUsages.CountNotDisposed, ContentRoUsages.CountNotFinalized));
|
|
sb.Append(Counts<ContentTransition>(ContentTransition.CountCreated, ContentTransition.CountNotDisposed, ContentTransition.CountNotFinalized));
|
|
sb.Append(Counts<ContentTransitions>(ContentTransitions.CountCreated, ContentTransitions.CountNotDisposed, ContentTransitions.CountNotFinalized));
|
|
sb.Append(Counts<Detail>(Detail.CountCreated, Detail.CountNotDisposed, Detail.CountNotFinalized));
|
|
sb.Append(Counts<DetailInfo>(DetailInfo.CountCreated, DetailInfo.CountNotDisposed, DetailInfo.CountNotFinalized));
|
|
sb.Append(Counts<DetailInfoList>(DetailInfoList.CountCreated, DetailInfoList.CountNotDisposed, DetailInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Document>(Document.CountCreated, Document.CountNotDisposed, Document.CountNotFinalized));
|
|
sb.Append(Counts<DocumentAudit>(DocumentAudit.CountCreated, DocumentAudit.CountNotDisposed, DocumentAudit.CountNotFinalized));
|
|
sb.Append(Counts<DocumentAuditInfo>(DocumentAuditInfo.CountCreated, DocumentAuditInfo.CountNotDisposed, DocumentAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<DocumentAuditInfoList>(DocumentAuditInfoList.CountCreated, DocumentAuditInfoList.CountNotDisposed, DocumentAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<DocumentDROUsage>(DocumentDROUsage.CountCreated, DocumentDROUsage.CountNotDisposed, DocumentDROUsage.CountNotFinalized));
|
|
sb.Append(Counts<DocumentDROUsages>(DocumentDROUsages.CountCreated, DocumentDROUsages.CountNotDisposed, DocumentDROUsages.CountNotFinalized));
|
|
sb.Append(Counts<DocumentEntries>(DocumentEntries.CountCreated, DocumentEntries.CountNotDisposed, DocumentEntries.CountNotFinalized));
|
|
sb.Append(Counts<DocumentEntry>(DocumentEntry.CountCreated, DocumentEntry.CountNotDisposed, DocumentEntry.CountNotFinalized));
|
|
sb.Append(Counts<DocumentInfo>(DocumentInfo.CountCreated, DocumentInfo.CountNotDisposed, DocumentInfo.CountNotFinalized));
|
|
sb.Append(Counts<DocumentInfoList>(DocumentInfoList.CountCreated, DocumentInfoList.CountNotDisposed, DocumentInfoList.CountNotFinalized));
|
|
sb.Append(Counts<DocumentPdf>(DocumentPdf.CountCreated, DocumentPdf.CountNotDisposed, DocumentPdf.CountNotFinalized));
|
|
sb.Append(Counts<DocumentPdfs>(DocumentPdfs.CountCreated, DocumentPdfs.CountNotDisposed, DocumentPdfs.CountNotFinalized));
|
|
sb.Append(Counts<DocVersion>(DocVersion.CountCreated, DocVersion.CountNotDisposed, DocVersion.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionAssociation>(DocVersionAssociation.CountCreated, DocVersionAssociation.CountNotDisposed, DocVersionAssociation.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionAssociations>(DocVersionAssociations.CountCreated, DocVersionAssociations.CountNotDisposed, DocVersionAssociations.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionInfo>(DocVersionInfo.CountCreated, DocVersionInfo.CountNotDisposed, DocVersionInfo.CountNotFinalized));
|
|
sb.Append(Counts<DocVersionInfoList>(DocVersionInfoList.CountCreated, DocVersionInfoList.CountNotDisposed, DocVersionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<DROUsage>(DROUsage.CountCreated, DROUsage.CountNotDisposed, DROUsage.CountNotFinalized));
|
|
sb.Append(Counts<DROUsageInfo>(DROUsageInfo.CountCreated, DROUsageInfo.CountNotDisposed, DROUsageInfo.CountNotFinalized));
|
|
sb.Append(Counts<DROUsageInfoList>(DROUsageInfoList.CountCreated, DROUsageInfoList.CountNotDisposed, DROUsageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Entry>(Entry.CountCreated, Entry.CountNotDisposed, Entry.CountNotFinalized));
|
|
sb.Append(Counts<EntryAudit>(EntryAudit.CountCreated, EntryAudit.CountNotDisposed, EntryAudit.CountNotFinalized));
|
|
sb.Append(Counts<EntryAuditInfo>(EntryAuditInfo.CountCreated, EntryAuditInfo.CountNotDisposed, EntryAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<EntryAuditInfoList>(EntryAuditInfoList.CountCreated, EntryAuditInfoList.CountNotDisposed, EntryAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<EntryInfo>(EntryInfo.CountCreated, EntryInfo.CountNotDisposed, EntryInfo.CountNotFinalized));
|
|
sb.Append(Counts<EntryInfoList>(EntryInfoList.CountCreated, EntryInfoList.CountNotDisposed, EntryInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Figure>(Figure.CountCreated, Figure.CountNotDisposed, Figure.CountNotFinalized));
|
|
sb.Append(Counts<FigureInfo>(FigureInfo.CountCreated, FigureInfo.CountNotDisposed, FigureInfo.CountNotFinalized));
|
|
sb.Append(Counts<FigureInfoList>(FigureInfoList.CountCreated, FigureInfoList.CountNotDisposed, FigureInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Folder>(Folder.CountCreated, Folder.CountNotDisposed, Folder.CountNotFinalized));
|
|
sb.Append(Counts<FolderAssignment>(FolderAssignment.CountCreated, FolderAssignment.CountNotDisposed, FolderAssignment.CountNotFinalized));
|
|
sb.Append(Counts<FolderAssignments>(FolderAssignments.CountCreated, FolderAssignments.CountNotDisposed, FolderAssignments.CountNotFinalized));
|
|
sb.Append(Counts<FolderDocVersion>(FolderDocVersion.CountCreated, FolderDocVersion.CountNotDisposed, FolderDocVersion.CountNotFinalized));
|
|
sb.Append(Counts<FolderDocVersions>(FolderDocVersions.CountCreated, FolderDocVersions.CountNotDisposed, FolderDocVersions.CountNotFinalized));
|
|
sb.Append(Counts<FolderInfo>(FolderInfo.CountCreated, FolderInfo.CountNotDisposed, FolderInfo.CountNotFinalized));
|
|
sb.Append(Counts<FolderInfoList>(FolderInfoList.CountCreated, FolderInfoList.CountNotDisposed, FolderInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Format>(Format.CountCreated, Format.CountNotDisposed, Format.CountNotFinalized));
|
|
sb.Append(Counts<FormatContent>(FormatContent.CountCreated, FormatContent.CountNotDisposed, FormatContent.CountNotFinalized));
|
|
sb.Append(Counts<FormatContents>(FormatContents.CountCreated, FormatContents.CountNotDisposed, FormatContents.CountNotFinalized));
|
|
sb.Append(Counts<FormatDocVersion>(FormatDocVersion.CountCreated, FormatDocVersion.CountNotDisposed, FormatDocVersion.CountNotFinalized));
|
|
sb.Append(Counts<FormatDocVersions>(FormatDocVersions.CountCreated, FormatDocVersions.CountNotDisposed, FormatDocVersions.CountNotFinalized));
|
|
sb.Append(Counts<FormatFolder>(FormatFolder.CountCreated, FormatFolder.CountNotDisposed, FormatFolder.CountNotFinalized));
|
|
sb.Append(Counts<FormatFolders>(FormatFolders.CountCreated, FormatFolders.CountNotDisposed, FormatFolders.CountNotFinalized));
|
|
sb.Append(Counts<FormatInfo>(FormatInfo.CountCreated, FormatInfo.CountNotDisposed, FormatInfo.CountNotFinalized));
|
|
sb.Append(Counts<FormatInfoList>(FormatInfoList.CountCreated, FormatInfoList.CountNotDisposed, FormatInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Grid>(Grid.CountCreated, Grid.CountNotDisposed, Grid.CountNotFinalized));
|
|
sb.Append(Counts<GridAudit>(GridAudit.CountCreated, GridAudit.CountNotDisposed, GridAudit.CountNotFinalized));
|
|
sb.Append(Counts<GridAuditInfo>(GridAuditInfo.CountCreated, GridAuditInfo.CountNotDisposed, GridAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<GridAuditInfoList>(GridAuditInfoList.CountCreated, GridAuditInfoList.CountNotDisposed, GridAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<GridInfo>(GridInfo.CountCreated, GridInfo.CountNotDisposed, GridInfo.CountNotFinalized));
|
|
sb.Append(Counts<Group>(Group.CountCreated, Group.CountNotDisposed, Group.CountNotFinalized));
|
|
sb.Append(Counts<GroupAssignment>(GroupAssignment.CountCreated, GroupAssignment.CountNotDisposed, GroupAssignment.CountNotFinalized));
|
|
sb.Append(Counts<GroupAssignments>(GroupAssignments.CountCreated, GroupAssignments.CountNotDisposed, GroupAssignments.CountNotFinalized));
|
|
sb.Append(Counts<GroupInfo>(GroupInfo.CountCreated, GroupInfo.CountNotDisposed, GroupInfo.CountNotFinalized));
|
|
sb.Append(Counts<GroupInfoList>(GroupInfoList.CountCreated, GroupInfoList.CountNotDisposed, GroupInfoList.CountNotFinalized));
|
|
sb.Append(Counts<GroupMembership>(GroupMembership.CountCreated, GroupMembership.CountNotDisposed, GroupMembership.CountNotFinalized));
|
|
sb.Append(Counts<GroupMemberships>(GroupMemberships.CountCreated, GroupMemberships.CountNotDisposed, GroupMemberships.CountNotFinalized));
|
|
sb.Append(Counts<Image>(Image.CountCreated, Image.CountNotDisposed, Image.CountNotFinalized));
|
|
sb.Append(Counts<ImageAudit>(ImageAudit.CountCreated, ImageAudit.CountNotDisposed, ImageAudit.CountNotFinalized));
|
|
sb.Append(Counts<ImageAuditInfo>(ImageAuditInfo.CountCreated, ImageAuditInfo.CountNotDisposed, ImageAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<ImageAuditInfoList>(ImageAuditInfoList.CountCreated, ImageAuditInfoList.CountNotDisposed, ImageAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ImageInfo>(ImageInfo.CountCreated, ImageInfo.CountNotDisposed, ImageInfo.CountNotFinalized));
|
|
sb.Append(Counts<Item>(Item.CountCreated, Item.CountNotDisposed, Item.CountNotFinalized));
|
|
sb.Append(Counts<ItemAnnotation>(ItemAnnotation.CountCreated, ItemAnnotation.CountNotDisposed, ItemAnnotation.CountNotFinalized));
|
|
sb.Append(Counts<ItemAnnotations>(ItemAnnotations.CountCreated, ItemAnnotations.CountNotDisposed, ItemAnnotations.CountNotFinalized));
|
|
sb.Append(Counts<ItemAudit>(ItemAudit.CountCreated, ItemAudit.CountNotDisposed, ItemAudit.CountNotFinalized));
|
|
sb.Append(Counts<ItemAuditInfo>(ItemAuditInfo.CountCreated, ItemAuditInfo.CountNotDisposed, ItemAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<ItemAuditInfoList>(ItemAuditInfoList.CountCreated, ItemAuditInfoList.CountNotDisposed, ItemAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ItemDocVersion>(ItemDocVersion.CountCreated, ItemDocVersion.CountNotDisposed, ItemDocVersion.CountNotFinalized));
|
|
sb.Append(Counts<ItemDocVersions>(ItemDocVersions.CountCreated, ItemDocVersions.CountNotDisposed, ItemDocVersions.CountNotFinalized));
|
|
sb.Append(Counts<ItemInfo>(ItemInfo.CountCreated, ItemInfo.CountNotDisposed, ItemInfo.CountNotFinalized));
|
|
sb.Append(Counts<ItemInfoList>(ItemInfoList.CountCreated, ItemInfoList.CountNotDisposed, ItemInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ItemPart>(ItemPart.CountCreated, ItemPart.CountNotDisposed, ItemPart.CountNotFinalized));
|
|
sb.Append(Counts<ItemParts>(ItemParts.CountCreated, ItemParts.CountNotDisposed, ItemParts.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransitions_RangeID>(ItemTransitions_RangeID.CountCreated, ItemTransitions_RangeID.CountNotDisposed, ItemTransitions_RangeID.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransitions_ToID>(ItemTransitions_ToID.CountCreated, ItemTransitions_ToID.CountNotDisposed, ItemTransitions_ToID.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransition_RangeID>(ItemTransition_RangeID.CountCreated, ItemTransition_RangeID.CountNotDisposed, ItemTransition_RangeID.CountNotFinalized));
|
|
sb.Append(Counts<ItemTransition_ToID>(ItemTransition_ToID.CountCreated, ItemTransition_ToID.CountNotDisposed, ItemTransition_ToID.CountNotFinalized));
|
|
sb.Append(Counts<Membership>(Membership.CountCreated, Membership.CountNotDisposed, Membership.CountNotFinalized));
|
|
sb.Append(Counts<MembershipInfo>(MembershipInfo.CountCreated, MembershipInfo.CountNotDisposed, MembershipInfo.CountNotFinalized));
|
|
sb.Append(Counts<MembershipInfoList>(MembershipInfoList.CountCreated, MembershipInfoList.CountNotDisposed, MembershipInfoList.CountNotFinalized));
|
|
//sb.Append(Counts<NextItems>(NextItems.CountCreated, NextItems.CountNotDisposed, NextItems.CountNotFinalized));
|
|
sb.Append(Counts<Part>(Part.CountCreated, Part.CountNotDisposed, Part.CountNotFinalized));
|
|
sb.Append(Counts<PartAudit>(PartAudit.CountCreated, PartAudit.CountNotDisposed, PartAudit.CountNotFinalized));
|
|
sb.Append(Counts<PartAuditInfo>(PartAuditInfo.CountCreated, PartAuditInfo.CountNotDisposed, PartAuditInfo.CountNotFinalized));
|
|
sb.Append(Counts<PartAuditInfoList>(PartAuditInfoList.CountCreated, PartAuditInfoList.CountNotDisposed, PartAuditInfoList.CountNotFinalized));
|
|
sb.Append(Counts<PartInfo>(PartInfo.CountCreated, PartInfo.CountNotDisposed, PartInfo.CountNotFinalized));
|
|
sb.Append(Counts<PartInfoList>(PartInfoList.CountCreated, PartInfoList.CountNotDisposed, PartInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Pdf>(Pdf.CountCreated, Pdf.CountNotDisposed, Pdf.CountNotFinalized));
|
|
sb.Append(Counts<PdfInfo>(PdfInfo.CountCreated, PdfInfo.CountNotDisposed, PdfInfo.CountNotFinalized));
|
|
sb.Append(Counts<PdfInfoList>(PdfInfoList.CountCreated, PdfInfoList.CountNotDisposed, PdfInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Permission>(Permission.CountCreated, Permission.CountNotDisposed, Permission.CountNotFinalized));
|
|
sb.Append(Counts<PermissionInfo>(PermissionInfo.CountCreated, PermissionInfo.CountNotDisposed, PermissionInfo.CountNotFinalized));
|
|
sb.Append(Counts<PermissionInfoList>(PermissionInfoList.CountCreated, PermissionInfoList.CountNotDisposed, PermissionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Revision>(Revision.CountCreated, Revision.CountNotDisposed, Revision.CountNotFinalized));
|
|
sb.Append(Counts<RevisionCheck>(RevisionCheck.CountCreated, RevisionCheck.CountNotDisposed, RevisionCheck.CountNotFinalized));
|
|
sb.Append(Counts<RevisionChecks>(RevisionChecks.CountCreated, RevisionChecks.CountNotDisposed, RevisionChecks.CountNotFinalized));
|
|
sb.Append(Counts<RevisionInfo>(RevisionInfo.CountCreated, RevisionInfo.CountNotDisposed, RevisionInfo.CountNotFinalized));
|
|
sb.Append(Counts<RevisionInfoList>(RevisionInfoList.CountCreated, RevisionInfoList.CountNotDisposed, RevisionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<RevisionVersion>(RevisionVersion.CountCreated, RevisionVersion.CountNotDisposed, RevisionVersion.CountNotFinalized));
|
|
sb.Append(Counts<RevisionVersions>(RevisionVersions.CountCreated, RevisionVersions.CountNotDisposed, RevisionVersions.CountNotFinalized));
|
|
sb.Append(Counts<RODb>(RODb.CountCreated, RODb.CountNotDisposed, RODb.CountNotFinalized));
|
|
sb.Append(Counts<RODbDROUsage>(RODbDROUsage.CountCreated, RODbDROUsage.CountNotDisposed, RODbDROUsage.CountNotFinalized));
|
|
sb.Append(Counts<RODbDROUsages>(RODbDROUsages.CountCreated, RODbDROUsages.CountNotDisposed, RODbDROUsages.CountNotFinalized));
|
|
sb.Append(Counts<RODbInfo>(RODbInfo.CountCreated, RODbInfo.CountNotDisposed, RODbInfo.CountNotFinalized));
|
|
sb.Append(Counts<RODbInfoList>(RODbInfoList.CountCreated, RODbInfoList.CountNotDisposed, RODbInfoList.CountNotFinalized));
|
|
sb.Append(Counts<RODbROFst>(RODbROFst.CountCreated, RODbROFst.CountNotDisposed, RODbROFst.CountNotFinalized));
|
|
sb.Append(Counts<RODbROFsts>(RODbROFsts.CountCreated, RODbROFsts.CountNotDisposed, RODbROFsts.CountNotFinalized));
|
|
sb.Append(Counts<RODbROImage>(RODbROImage.CountCreated, RODbROImage.CountNotDisposed, RODbROImage.CountNotFinalized));
|
|
sb.Append(Counts<RODbROImages>(RODbROImages.CountCreated, RODbROImages.CountNotDisposed, RODbROImages.CountNotFinalized));
|
|
sb.Append(Counts<RODbRoUsage>(RODbRoUsage.CountCreated, RODbRoUsage.CountNotDisposed, RODbRoUsage.CountNotFinalized));
|
|
sb.Append(Counts<RODbRoUsages>(RODbRoUsages.CountCreated, RODbRoUsages.CountNotDisposed, RODbRoUsages.CountNotFinalized));
|
|
sb.Append(Counts<ROFst>(ROFst.CountCreated, ROFst.CountNotDisposed, ROFst.CountNotFinalized));
|
|
sb.Append(Counts<ROFstAssociation>(ROFstAssociation.CountCreated, ROFstAssociation.CountNotDisposed, ROFstAssociation.CountNotFinalized));
|
|
sb.Append(Counts<ROFstAssociations>(ROFstAssociations.CountCreated, ROFstAssociations.CountNotDisposed, ROFstAssociations.CountNotFinalized));
|
|
sb.Append(Counts<ROFstFigure>(ROFstFigure.CountCreated, ROFstFigure.CountNotDisposed, ROFstFigure.CountNotFinalized));
|
|
sb.Append(Counts<ROFstFigures>(ROFstFigures.CountCreated, ROFstFigures.CountNotDisposed, ROFstFigures.CountNotFinalized));
|
|
sb.Append(Counts<ROFstInfo>(ROFstInfo.CountCreated, ROFstInfo.CountNotDisposed, ROFstInfo.CountNotFinalized));
|
|
sb.Append(Counts<ROFstInfoList>(ROFstInfoList.CountCreated, ROFstInfoList.CountNotDisposed, ROFstInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ROImage>(ROImage.CountCreated, ROImage.CountNotDisposed, ROImage.CountNotFinalized));
|
|
sb.Append(Counts<ROImageFigure>(ROImageFigure.CountCreated, ROImageFigure.CountNotDisposed, ROImageFigure.CountNotFinalized));
|
|
sb.Append(Counts<ROImageFigures>(ROImageFigures.CountCreated, ROImageFigures.CountNotDisposed, ROImageFigures.CountNotFinalized));
|
|
sb.Append(Counts<ROImageInfo>(ROImageInfo.CountCreated, ROImageInfo.CountNotDisposed, ROImageInfo.CountNotFinalized));
|
|
sb.Append(Counts<ROImageInfoList>(ROImageInfoList.CountCreated, ROImageInfoList.CountNotDisposed, ROImageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Role>(Role.CountCreated, Role.CountNotDisposed, Role.CountNotFinalized));
|
|
sb.Append(Counts<RoleAssignment>(RoleAssignment.CountCreated, RoleAssignment.CountNotDisposed, RoleAssignment.CountNotFinalized));
|
|
sb.Append(Counts<RoleAssignments>(RoleAssignments.CountCreated, RoleAssignments.CountNotDisposed, RoleAssignments.CountNotFinalized));
|
|
sb.Append(Counts<RoleInfo>(RoleInfo.CountCreated, RoleInfo.CountNotDisposed, RoleInfo.CountNotFinalized));
|
|
sb.Append(Counts<RoleInfoList>(RoleInfoList.CountCreated, RoleInfoList.CountNotDisposed, RoleInfoList.CountNotFinalized));
|
|
sb.Append(Counts<RolePermission>(RolePermission.CountCreated, RolePermission.CountNotDisposed, RolePermission.CountNotFinalized));
|
|
sb.Append(Counts<RolePermissions>(RolePermissions.CountCreated, RolePermissions.CountNotDisposed, RolePermissions.CountNotFinalized));
|
|
sb.Append(Counts<RoUsage>(RoUsage.CountCreated, RoUsage.CountNotDisposed, RoUsage.CountNotFinalized));
|
|
sb.Append(Counts<RoUsageInfo>(RoUsageInfo.CountCreated, RoUsageInfo.CountNotDisposed, RoUsageInfo.CountNotFinalized));
|
|
sb.Append(Counts<RoUsageInfoList>(RoUsageInfoList.CountCreated, RoUsageInfoList.CountNotDisposed, RoUsageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<Stage>(Stage.CountCreated, Stage.CountNotDisposed, Stage.CountNotFinalized));
|
|
sb.Append(Counts<StageCheck>(StageCheck.CountCreated, StageCheck.CountNotDisposed, StageCheck.CountNotFinalized));
|
|
sb.Append(Counts<StageChecks>(StageChecks.CountCreated, StageChecks.CountNotDisposed, StageChecks.CountNotFinalized));
|
|
sb.Append(Counts<StageInfo>(StageInfo.CountCreated, StageInfo.CountNotDisposed, StageInfo.CountNotFinalized));
|
|
sb.Append(Counts<StageInfoList>(StageInfoList.CountCreated, StageInfoList.CountNotDisposed, StageInfoList.CountNotFinalized));
|
|
sb.Append(Counts<StageVersion>(StageVersion.CountCreated, StageVersion.CountNotDisposed, StageVersion.CountNotFinalized));
|
|
sb.Append(Counts<StageVersions>(StageVersions.CountCreated, StageVersions.CountNotDisposed, StageVersions.CountNotFinalized));
|
|
sb.Append(Counts<Transition>(Transition.CountCreated, Transition.CountNotDisposed, Transition.CountNotFinalized));
|
|
sb.Append(Counts<TransitionInfo>(TransitionInfo.CountCreated, TransitionInfo.CountNotDisposed, TransitionInfo.CountNotFinalized));
|
|
sb.Append(Counts<TransitionInfoList>(TransitionInfoList.CountCreated, TransitionInfoList.CountNotDisposed, TransitionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<User>(User.CountCreated, User.CountNotDisposed, User.CountNotFinalized));
|
|
sb.Append(Counts<UserInfo>(UserInfo.CountCreated, UserInfo.CountNotDisposed, UserInfo.CountNotFinalized));
|
|
sb.Append(Counts<UserInfoList>(UserInfoList.CountCreated, UserInfoList.CountNotDisposed, UserInfoList.CountNotFinalized));
|
|
sb.Append(Counts<UserMembership>(UserMembership.CountCreated, UserMembership.CountNotDisposed, UserMembership.CountNotFinalized));
|
|
sb.Append(Counts<UserMemberships>(UserMemberships.CountCreated, UserMemberships.CountNotDisposed, UserMemberships.CountNotFinalized));
|
|
sb.Append(Counts<Version>(Version.CountCreated, Version.CountNotDisposed, Version.CountNotFinalized));
|
|
sb.Append(Counts<VersionInfo>(VersionInfo.CountCreated, VersionInfo.CountNotDisposed, VersionInfo.CountNotFinalized));
|
|
sb.Append(Counts<VersionInfoList>(VersionInfoList.CountCreated, VersionInfoList.CountNotDisposed, VersionInfoList.CountNotFinalized));
|
|
sb.Append(Counts<ZContent>(ZContent.CountCreated, ZContent.CountNotDisposed, ZContent.CountNotFinalized));
|
|
sb.Append(Counts<ZContentInfo>(ZContentInfo.CountCreated, ZContentInfo.CountNotDisposed, ZContentInfo.CountNotFinalized));
|
|
sb.Append(Counts<ZTransition>(ZTransition.CountCreated, ZTransition.CountNotDisposed, ZTransition.CountNotFinalized));
|
|
sb.Append(Counts<ZTransitionInfo>(ZTransitionInfo.CountCreated, ZTransitionInfo.CountNotDisposed, ZTransitionInfo.CountNotFinalized));
|
|
return sb.ToString();
|
|
}
|
|
}
|
|
private static string Counts<T>(Dictionary<string, List<T>> cache)
|
|
{
|
|
int count = 0;
|
|
foreach (List<T> 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<T>(int count)
|
|
{
|
|
if (count == 0) return "";
|
|
string output = typeof(T).Name;
|
|
output += "\t" + count + "\r\n";
|
|
return output;
|
|
}
|
|
private static string Counts<T>(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<T>(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<int>
|
|
{
|
|
// Calls CaseInsensitiveComparer.Compare with the parameters reversed.
|
|
int IComparer<int>.Compare(int x, int y)
|
|
{
|
|
return y.CompareTo(x);
|
|
}
|
|
}
|
|
#region Stack
|
|
public partial class Content
|
|
{
|
|
private static List<string> _MyStack = new List<string>();
|
|
public static string MyStack
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.SaveStack) return "";
|
|
Dictionary<int, int> stackCount = new Dictionary<int, int>();
|
|
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<int> myComparer = new myReverserClass();
|
|
SortedDictionary<int, List<string>> countStack = new SortedDictionary<int, List<string>>(myComparer);
|
|
foreach (int ind in stackCount.Keys)
|
|
{
|
|
int key = stackCount[ind];
|
|
if (!countStack.ContainsKey(key))
|
|
countStack.Add(key, new List<string>());
|
|
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<string> _MyStack = new List<string>();
|
|
public static string MyStack
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.SaveStack) return "";
|
|
Dictionary<int, int> stackCount = new Dictionary<int, int>();
|
|
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<int> myComparer = new myReverserClass();
|
|
SortedDictionary<int, List<string>> countStack = new SortedDictionary<int, List<string>>(myComparer);
|
|
foreach (int ind in stackCount.Keys)
|
|
{
|
|
int key = stackCount[ind];
|
|
if (!countStack.ContainsKey(key))
|
|
countStack.Add(key, new List<string>());
|
|
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<string> _MyStack = new List<string>();
|
|
public static string MyStack
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.SaveStack) return "";
|
|
Dictionary<int, int> stackCount = new Dictionary<int, int>();
|
|
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<int> myComparer = new myReverserClass();
|
|
SortedDictionary<int, List<string>> countStack = new SortedDictionary<int, List<string>>(myComparer);
|
|
foreach (int ind in stackCount.Keys)
|
|
{
|
|
int key = stackCount[ind];
|
|
if (!countStack.ContainsKey(key))
|
|
countStack.Add(key, new List<string>());
|
|
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<int> CacheList
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.RestoreCache) return null;
|
|
ConvertListToDictionary();
|
|
HashSet<int> lst = new HashSet<int>();
|
|
foreach (string key in _CacheByPrimaryKey.Keys)
|
|
foreach (PartInfo pi in _CacheByPrimaryKey[key])
|
|
lst.Add(pi.MyPartInfoUnique);
|
|
return lst;
|
|
}
|
|
}
|
|
public static void RestoreCacheList(HashSet<int> cacheList)
|
|
{
|
|
if (cacheList == null) return;
|
|
ConvertListToDictionary();
|
|
List<PartInfo> piList = new List<PartInfo>();
|
|
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<int> to HashSet<int> 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<int> CacheList
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.RestoreCache) return null;
|
|
ConvertListToDictionary();
|
|
HashSet<int> lst = new HashSet<int>();
|
|
foreach (string key in _CacheByPrimaryKey.Keys)
|
|
foreach (ContentInfo ci in _CacheByPrimaryKey[key])
|
|
lst.Add(ci.MyContentInfoUnique);
|
|
return lst;
|
|
}
|
|
}
|
|
public static void RestoreCacheList(HashSet<int> cacheList)
|
|
{
|
|
if (cacheList == null) return; // if 'initialized' through CacheList above, it won't be null.
|
|
ConvertListToDictionary();
|
|
List<ContentInfo> ciList = new List<ContentInfo>();
|
|
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<int> CacheList
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.RestoreCache) return null;
|
|
ConvertListToDictionary();
|
|
List<int> lst = new List<int>();
|
|
foreach (string key in _CacheByPrimaryKey.Keys)
|
|
foreach (DocVersionInfo dvi in _CacheByPrimaryKey[key])
|
|
lst.Add(dvi.MyDocVersionInfoUnique);
|
|
return lst;
|
|
}
|
|
}
|
|
public static void RestoreCacheList(List<int> cacheList)
|
|
{
|
|
if (cacheList == null) return;
|
|
ConvertListToDictionary();
|
|
List<DocVersionInfo> dviList = new List<DocVersionInfo>();
|
|
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<int> CacheList
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.RestoreCache) return null;
|
|
ConvertListToDictionary();
|
|
List<int> lst = new List<int>();
|
|
foreach (string key in _CacheByPrimaryKey.Keys)
|
|
foreach (EntryInfo ei in _CacheByPrimaryKey[key])
|
|
lst.Add(ei.MyEntryInfoUnique);
|
|
return lst;
|
|
}
|
|
}
|
|
public static void RestoreCacheList(List<int> cacheList)
|
|
{
|
|
if (cacheList == null) return;
|
|
ConvertListToDictionary();
|
|
List<EntryInfo> eiList = new List<EntryInfo>();
|
|
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<int> CacheList
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.RestoreCache) return null;
|
|
ConvertListToDictionary();
|
|
HashSet<int> lst = new HashSet<int>();
|
|
foreach (string key in _CacheByPrimaryKey.Keys)
|
|
foreach (ItemInfo ii in _CacheByPrimaryKey[key])
|
|
lst.Add(ii.MyItemInfoUnique);
|
|
return lst;
|
|
}
|
|
}
|
|
public static void RestoreCacheList(HashSet<int> cacheList)
|
|
{
|
|
if (cacheList == null) return;
|
|
ConvertListToDictionary();
|
|
List<ItemInfo> iiList = new List<ItemInfo>();
|
|
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<int> CacheList
|
|
{
|
|
get
|
|
{
|
|
if (!CSLACache.RestoreCache) return null;
|
|
ConvertListToDictionary();
|
|
List<int> lst = new List<int>();
|
|
foreach (string key in _CacheByPrimaryKey.Keys)
|
|
foreach (PdfInfo pi in _CacheByPrimaryKey[key])
|
|
lst.Add(pi.MyPdfInfoUnique);
|
|
return lst;
|
|
}
|
|
}
|
|
public static void RestoreCacheList(List<int> cacheList)
|
|
{
|
|
if (cacheList == null) return;
|
|
ConvertListToDictionary();
|
|
List<PdfInfo> piList = new List<PdfInfo>();
|
|
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
|
|
}
|