CSLA - Extension

This commit is contained in:
2026-09-01 08:21:41 -04:00
parent dcd2fbc294
commit dab65dbfb6
30 changed files with 2703 additions and 5680 deletions
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;
using Volian.Base.Library;
@@ -438,29 +437,29 @@ namespace VEPROMS.CSLA.Library
count += lst.Count;
if (count == 0) return "";
string output = typeof(T).Name;
output += "\t" + cache.Count;
output += "\t" + count + "\r\n";
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";
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";
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";
output += $"\t{countCreated}\t{countNotDisposed}\t{countNotFinalized}\r\n";
return output;
}
}
@@ -475,7 +474,8 @@ namespace VEPROMS.CSLA.Library
#region Stack
public partial class Content
{
private static List<string> _MyStack = new List<string>();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "Keeping Collections Not ReadOnly")]
private static List<string> _MyStack = new List<string>();
public static string MyStack
{
get
@@ -519,15 +519,13 @@ namespace VEPROMS.CSLA.Library
return _MyStack.IndexOf(stk);
}
}
private int _StackIndex = StaticStackIndex;
public int StackIndex
{
get { return _StackIndex; }
}
}
private readonly int _StackIndex = StaticStackIndex;
public int StackIndex => _StackIndex;
}
public partial class ContentInfo
{
private static List<string> _MyStack = new List<string>();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "Keeping Collections Not ReadOnly")]
private static List<string> _MyStack = new List<string>();
public static string MyStack
{
get
@@ -571,15 +569,13 @@ namespace VEPROMS.CSLA.Library
return _MyStack.IndexOf(stk);
}
}
private int _StackIndex = StaticStackIndex;
public int StackIndex
{
get { return _StackIndex; }
}
}
private readonly int _StackIndex = StaticStackIndex;
public int StackIndex => _StackIndex;
}
public partial class DocVersionInfo
{
private static List<string> _MyStack = new List<string>();
[System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE0044:Add readonly modifier", Justification = "Keeping Collections Not ReadOnly")]
private static List<string> _MyStack = new List<string>();
public static string MyStack
{
get
@@ -623,12 +619,9 @@ namespace VEPROMS.CSLA.Library
return _MyStack.IndexOf(stk);
}
}
private int _StackIndex = StaticStackIndex;
public int StackIndex
{
get { return _StackIndex; }
}
}
private readonly int _StackIndex = StaticStackIndex;
public int StackIndex => _StackIndex;
}
public partial class PartInfo
{
public static HashSet<int> CacheList