Reset related lists
This commit is contained in:
@@ -357,13 +357,19 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentDetails", true);
|
||||
if (_ContentDetailCount > 0 && _ContentDetails == null)
|
||||
if (_ContentDetailCount < 0 || (_ContentDetailCount > 0 && _ContentDetails == null))
|
||||
_ContentDetails = ContentDetails.GetByContentID(ContentID);
|
||||
else if (_ContentDetails == null)
|
||||
if (_ContentDetailCount < 0 )
|
||||
_ContentDetailCount = _ContentDetails == null ? 0 : _ContentDetails.Count;
|
||||
if (_ContentDetails == null)
|
||||
_ContentDetails = ContentDetails.New();
|
||||
return _ContentDetails;
|
||||
}
|
||||
}
|
||||
public void Reset_ContentDetails()
|
||||
{
|
||||
_ContentDetailCount = -1;
|
||||
}
|
||||
private int _ContentEntryCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentEntries for this Content
|
||||
@@ -416,13 +422,19 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentItems", true);
|
||||
if (_ContentItemCount > 0 && _ContentItems == null)
|
||||
if (_ContentItemCount < 0 || (_ContentItemCount > 0 && _ContentItems == null))
|
||||
_ContentItems = ContentItems.GetByContentID(ContentID);
|
||||
else if (_ContentItems == null)
|
||||
if (_ContentItemCount < 0 )
|
||||
_ContentItemCount = _ContentItems == null ? 0 : _ContentItems.Count;
|
||||
if (_ContentItems == null)
|
||||
_ContentItems = ContentItems.New();
|
||||
return _ContentItems;
|
||||
}
|
||||
}
|
||||
public void Reset_ContentItems()
|
||||
{
|
||||
_ContentItemCount = -1;
|
||||
}
|
||||
private int _ContentPartCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentParts for this Content
|
||||
@@ -447,13 +459,19 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentParts", true);
|
||||
if (_ContentPartCount > 0 && _ContentParts == null)
|
||||
if (_ContentPartCount < 0 || (_ContentPartCount > 0 && _ContentParts == null))
|
||||
_ContentParts = ContentParts.GetByContentID(ContentID);
|
||||
else if (_ContentParts == null)
|
||||
if (_ContentPartCount < 0 )
|
||||
_ContentPartCount = _ContentParts == null ? 0 : _ContentParts.Count;
|
||||
if (_ContentParts == null)
|
||||
_ContentParts = ContentParts.New();
|
||||
return _ContentParts;
|
||||
}
|
||||
}
|
||||
public void Reset_ContentParts()
|
||||
{
|
||||
_ContentPartCount = -1;
|
||||
}
|
||||
private int _ContentRoUsageCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentRoUsages for this Content
|
||||
@@ -478,13 +496,19 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentRoUsages", true);
|
||||
if (_ContentRoUsageCount > 0 && _ContentRoUsages == null)
|
||||
if (_ContentRoUsageCount < 0 || (_ContentRoUsageCount > 0 && _ContentRoUsages == null))
|
||||
_ContentRoUsages = ContentRoUsages.GetByContentID(ContentID);
|
||||
else if (_ContentRoUsages == null)
|
||||
if (_ContentRoUsageCount < 0 )
|
||||
_ContentRoUsageCount = _ContentRoUsages == null ? 0 : _ContentRoUsages.Count;
|
||||
if (_ContentRoUsages == null)
|
||||
_ContentRoUsages = ContentRoUsages.New();
|
||||
return _ContentRoUsages;
|
||||
}
|
||||
}
|
||||
public void Reset_ContentRoUsages()
|
||||
{
|
||||
_ContentRoUsageCount = -1;
|
||||
}
|
||||
private int _ContentTransitionCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentTransitions for this Content
|
||||
@@ -509,13 +533,19 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentTransitions", true);
|
||||
if (_ContentTransitionCount > 0 && _ContentTransitions == null)
|
||||
if (_ContentTransitionCount < 0 || (_ContentTransitionCount > 0 && _ContentTransitions == null))
|
||||
_ContentTransitions = ContentTransitions.GetByFromID(ContentID);
|
||||
else if (_ContentTransitions == null)
|
||||
if (_ContentTransitionCount < 0 )
|
||||
_ContentTransitionCount = _ContentTransitions == null ? 0 : _ContentTransitions.Count;
|
||||
if (_ContentTransitions == null)
|
||||
_ContentTransitions = ContentTransitions.New();
|
||||
return _ContentTransitions;
|
||||
}
|
||||
}
|
||||
public void Reset_ContentTransitions()
|
||||
{
|
||||
_ContentTransitionCount = -1;
|
||||
}
|
||||
private int _ContentZContentCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentZContents for this Content
|
||||
|
Reference in New Issue
Block a user