Added code to Track DB Usage. Uses the StackTrace to find which object and method are being used when the database is being used.
Added Profile debug
This commit is contained in:
@@ -17,6 +17,7 @@ using System.Configuration;
|
||||
using System.IO;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
using Volian.Base.Library;
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
public delegate void ItemInfoEvent(object sender);
|
||||
@@ -313,11 +314,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
//int profileDepth = ProfileTimer.Push(">>>> ItemParts");
|
||||
CanReadProperty("ItemParts", true);
|
||||
if (_ItemPartCount < 0 || (_ItemPartCount > 0 && _ItemParts == null))
|
||||
_ItemParts = PartInfoList.GetByItemID(_ItemID);
|
||||
if (_ItemPartCount < 0)
|
||||
_ItemPartCount = _ItemParts.Count;
|
||||
//ProfileTimer.Pop(profileDepth);
|
||||
return _ItemParts;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user