Reset related lists

This commit is contained in:
Rich 2009-02-06 15:55:52 +00:00
parent 1731dbe43b
commit 26f8e03a8c
29 changed files with 360 additions and 71 deletions

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static AnnotationInfoList _AnnotationInfoList = null; public static AnnotationInfoList _AnnotationInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all AnnotationInfo.
/// </summary> /// </summary>
public static AnnotationInfoList Get() public static AnnotationInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on AnnotationInfoList.Get", ex); throw new DbCslaException("Error on AnnotationInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all AnnotationInfo.
/// </summary>
public static void Reset()
{
_AnnotationInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static AnnotationInfoList Get(<criteria>) //public static AnnotationInfoList Get(<criteria>)
//{ //{

View File

@ -237,13 +237,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("AnnotationTypeAnnotations", true); CanReadProperty("AnnotationTypeAnnotations", true);
if (_AnnotationTypeAnnotationCount > 0 && _AnnotationTypeAnnotations == null) if (_AnnotationTypeAnnotationCount < 0 || (_AnnotationTypeAnnotationCount > 0 && _AnnotationTypeAnnotations == null))
_AnnotationTypeAnnotations = AnnotationTypeAnnotations.GetByTypeID(TypeID); _AnnotationTypeAnnotations = AnnotationTypeAnnotations.GetByTypeID(TypeID);
else if (_AnnotationTypeAnnotations == null) if (_AnnotationTypeAnnotationCount < 0 )
_AnnotationTypeAnnotationCount = _AnnotationTypeAnnotations == null ? 0 : _AnnotationTypeAnnotations.Count;
if (_AnnotationTypeAnnotations == null)
_AnnotationTypeAnnotations = AnnotationTypeAnnotations.New(); _AnnotationTypeAnnotations = AnnotationTypeAnnotations.New();
return _AnnotationTypeAnnotations; return _AnnotationTypeAnnotations;
} }
} }
public void Reset_AnnotationTypeAnnotations()
{
_AnnotationTypeAnnotationCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_AnnotationTypeAnnotations == null ? false : _AnnotationTypeAnnotations.IsDirty); } get { return base.IsDirty || (_AnnotationTypeAnnotations == null ? false : _AnnotationTypeAnnotations.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static AnnotationTypeInfoList _AnnotationTypeInfoList = null; public static AnnotationTypeInfoList _AnnotationTypeInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all AnnotationTypeInfo.
/// </summary> /// </summary>
public static AnnotationTypeInfoList Get() public static AnnotationTypeInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on AnnotationTypeInfoList.Get", ex); throw new DbCslaException("Error on AnnotationTypeInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all AnnotationTypeInfo.
/// </summary>
public static void Reset()
{
_AnnotationTypeInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static AnnotationTypeInfoList Get(<criteria>) //public static AnnotationTypeInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static AssignmentInfoList _AssignmentInfoList = null; public static AssignmentInfoList _AssignmentInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all AssignmentInfo.
/// </summary> /// </summary>
public static AssignmentInfoList Get() public static AssignmentInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on AssignmentInfoList.Get", ex); throw new DbCslaException("Error on AssignmentInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all AssignmentInfo.
/// </summary>
public static void Reset()
{
_AssignmentInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static AssignmentInfoList Get(<criteria>) //public static AssignmentInfoList Get(<criteria>)
//{ //{

View File

@ -302,13 +302,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ConnectionFolders", true); CanReadProperty("ConnectionFolders", true);
if (_ConnectionFolderCount > 0 && _ConnectionFolders == null) if (_ConnectionFolderCount < 0 || (_ConnectionFolderCount > 0 && _ConnectionFolders == null))
_ConnectionFolders = ConnectionFolders.GetByDBID(DBID); _ConnectionFolders = ConnectionFolders.GetByDBID(DBID);
else if (_ConnectionFolders == null) if (_ConnectionFolderCount < 0 )
_ConnectionFolderCount = _ConnectionFolders == null ? 0 : _ConnectionFolders.Count;
if (_ConnectionFolders == null)
_ConnectionFolders = ConnectionFolders.New(); _ConnectionFolders = ConnectionFolders.New();
return _ConnectionFolders; return _ConnectionFolders;
} }
} }
public void Reset_ConnectionFolders()
{
_ConnectionFolderCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_ConnectionFolders == null ? false : _ConnectionFolders.IsDirty); } get { return base.IsDirty || (_ConnectionFolders == null ? false : _ConnectionFolders.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static ConnectionInfoList _ConnectionInfoList = null; public static ConnectionInfoList _ConnectionInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all ConnectionInfo.
/// </summary> /// </summary>
public static ConnectionInfoList Get() public static ConnectionInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on ConnectionInfoList.Get", ex); throw new DbCslaException("Error on ConnectionInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all ConnectionInfo.
/// </summary>
public static void Reset()
{
_ConnectionInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static ConnectionInfoList Get(<criteria>) //public static ConnectionInfoList Get(<criteria>)
//{ //{

View File

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

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static ContentInfoList _ContentInfoList = null; public static ContentInfoList _ContentInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all ContentInfo.
/// </summary> /// </summary>
public static ContentInfoList Get() public static ContentInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on ContentInfoList.Get", ex); throw new DbCslaException("Error on ContentInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all ContentInfo.
/// </summary>
public static void Reset()
{
_ContentInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static ContentInfoList Get(<criteria>) //public static ContentInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static DetailInfoList _DetailInfoList = null; public static DetailInfoList _DetailInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all DetailInfo.
/// </summary> /// </summary>
public static DetailInfoList Get() public static DetailInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on DetailInfoList.Get", ex); throw new DbCslaException("Error on DetailInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all DetailInfo.
/// </summary>
public static void Reset()
{
_DetailInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static DetailInfoList Get(<criteria>) //public static DetailInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static DocVersionInfoList _DocVersionInfoList = null; public static DocVersionInfoList _DocVersionInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all DocVersionInfo.
/// </summary> /// </summary>
public static DocVersionInfoList Get() public static DocVersionInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on DocVersionInfoList.Get", ex); throw new DbCslaException("Error on DocVersionInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all DocVersionInfo.
/// </summary>
public static void Reset()
{
_DocVersionInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static DocVersionInfoList Get(<criteria>) //public static DocVersionInfoList Get(<criteria>)
//{ //{

View File

@ -274,13 +274,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("DocumentEntries", true); CanReadProperty("DocumentEntries", true);
if (_DocumentEntryCount > 0 && _DocumentEntries == null) if (_DocumentEntryCount < 0 || (_DocumentEntryCount > 0 && _DocumentEntries == null))
_DocumentEntries = DocumentEntries.GetByDocID(DocID); _DocumentEntries = DocumentEntries.GetByDocID(DocID);
else if (_DocumentEntries == null) if (_DocumentEntryCount < 0 )
_DocumentEntryCount = _DocumentEntries == null ? 0 : _DocumentEntries.Count;
if (_DocumentEntries == null)
_DocumentEntries = DocumentEntries.New(); _DocumentEntries = DocumentEntries.New();
return _DocumentEntries; return _DocumentEntries;
} }
} }
public void Reset_DocumentEntries()
{
_DocumentEntryCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_DocumentEntries == null ? false : _DocumentEntries.IsDirty); } get { return base.IsDirty || (_DocumentEntries == null ? false : _DocumentEntries.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static DocumentInfoList _DocumentInfoList = null; public static DocumentInfoList _DocumentInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all DocumentInfo.
/// </summary> /// </summary>
public static DocumentInfoList Get() public static DocumentInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on DocumentInfoList.Get", ex); throw new DbCslaException("Error on DocumentInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all DocumentInfo.
/// </summary>
public static void Reset()
{
_DocumentInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static DocumentInfoList Get(<criteria>) //public static DocumentInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static EntryInfoList _EntryInfoList = null; public static EntryInfoList _EntryInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all EntryInfo.
/// </summary> /// </summary>
public static EntryInfoList Get() public static EntryInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on EntryInfoList.Get", ex); throw new DbCslaException("Error on EntryInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all EntryInfo.
/// </summary>
public static void Reset()
{
_EntryInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static EntryInfoList Get(<criteria>) //public static EntryInfoList Get(<criteria>)
//{ //{

View File

@ -418,13 +418,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("FolderAssignments", true); CanReadProperty("FolderAssignments", true);
if (_FolderAssignmentCount > 0 && _FolderAssignments == null) if (_FolderAssignmentCount < 0 || (_FolderAssignmentCount > 0 && _FolderAssignments == null))
_FolderAssignments = FolderAssignments.GetByFolderID(FolderID); _FolderAssignments = FolderAssignments.GetByFolderID(FolderID);
else if (_FolderAssignments == null) if (_FolderAssignmentCount < 0 )
_FolderAssignmentCount = _FolderAssignments == null ? 0 : _FolderAssignments.Count;
if (_FolderAssignments == null)
_FolderAssignments = FolderAssignments.New(); _FolderAssignments = FolderAssignments.New();
return _FolderAssignments; return _FolderAssignments;
} }
} }
public void Reset_FolderAssignments()
{
_FolderAssignmentCount = -1;
}
private int _FolderDocVersionCount = 0; private int _FolderDocVersionCount = 0;
/// <summary> /// <summary>
/// Count of FolderDocVersions for this Folder /// Count of FolderDocVersions for this Folder
@ -449,13 +455,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("FolderDocVersions", true); CanReadProperty("FolderDocVersions", true);
if (_FolderDocVersionCount > 0 && _FolderDocVersions == null) if (_FolderDocVersionCount < 0 || (_FolderDocVersionCount > 0 && _FolderDocVersions == null))
_FolderDocVersions = FolderDocVersions.GetByFolderID(FolderID); _FolderDocVersions = FolderDocVersions.GetByFolderID(FolderID);
else if (_FolderDocVersions == null) if (_FolderDocVersionCount < 0 )
_FolderDocVersionCount = _FolderDocVersions == null ? 0 : _FolderDocVersions.Count;
if (_FolderDocVersions == null)
_FolderDocVersions = FolderDocVersions.New(); _FolderDocVersions = FolderDocVersions.New();
return _FolderDocVersions; return _FolderDocVersions;
} }
} }
public void Reset_FolderDocVersions()
{
_FolderDocVersionCount = -1;
}
private int _ChildFolderCount = 0; private int _ChildFolderCount = 0;
/// <summary> /// <summary>
/// Count of ChildFolders for this Folder /// Count of ChildFolders for this Folder
@ -480,13 +492,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ChildFolders", true); CanReadProperty("ChildFolders", true);
if (_ChildFolderCount > 0 && _ChildFolders == null) if (_ChildFolderCount < 0 || (_ChildFolderCount > 0 && _ChildFolders == null))
_ChildFolders = ChildFolders.GetByParentID(FolderID); _ChildFolders = ChildFolders.GetByParentID(FolderID);
else if (_ChildFolders == null) if (_ChildFolderCount < 0 )
_ChildFolderCount = _ChildFolders == null ? 0 : _ChildFolders.Count;
if (_ChildFolders == null)
_ChildFolders = ChildFolders.New(); _ChildFolders = ChildFolders.New();
return _ChildFolders; return _ChildFolders;
} }
} }
public void Reset_ChildFolders()
{
_ChildFolderCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_FolderAssignments == null ? false : _FolderAssignments.IsDirty) || (_FolderDocVersions == null ? false : _FolderDocVersions.IsDirty) || (_ChildFolders == null ? false : _ChildFolders.IsDirty) || (_MyConnection == null ? false : _MyConnection.IsDirty) || (_MyFormat == null ? false : _MyFormat.IsDirty); } get { return base.IsDirty || (_FolderAssignments == null ? false : _FolderAssignments.IsDirty) || (_FolderDocVersions == null ? false : _FolderDocVersions.IsDirty) || (_ChildFolders == null ? false : _ChildFolders.IsDirty) || (_MyConnection == null ? false : _MyConnection.IsDirty) || (_MyFormat == null ? false : _MyFormat.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static FolderInfoList _FolderInfoList = null; public static FolderInfoList _FolderInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all FolderInfo.
/// </summary> /// </summary>
public static FolderInfoList Get() public static FolderInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on FolderInfoList.Get", ex); throw new DbCslaException("Error on FolderInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all FolderInfo.
/// </summary>
public static void Reset()
{
_FolderInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static FolderInfoList Get(<criteria>) //public static FolderInfoList Get(<criteria>)
//{ //{

View File

@ -344,13 +344,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("FormatContents", true); CanReadProperty("FormatContents", true);
if (_FormatContentCount > 0 && _FormatContents == null) if (_FormatContentCount < 0 || (_FormatContentCount > 0 && _FormatContents == null))
_FormatContents = FormatContents.GetByFormatID(FormatID); _FormatContents = FormatContents.GetByFormatID(FormatID);
else if (_FormatContents == null) if (_FormatContentCount < 0 )
_FormatContentCount = _FormatContents == null ? 0 : _FormatContents.Count;
if (_FormatContents == null)
_FormatContents = FormatContents.New(); _FormatContents = FormatContents.New();
return _FormatContents; return _FormatContents;
} }
} }
public void Reset_FormatContents()
{
_FormatContentCount = -1;
}
private int _FormatDocVersionCount = 0; private int _FormatDocVersionCount = 0;
/// <summary> /// <summary>
/// Count of FormatDocVersions for this Format /// Count of FormatDocVersions for this Format
@ -375,13 +381,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("FormatDocVersions", true); CanReadProperty("FormatDocVersions", true);
if (_FormatDocVersionCount > 0 && _FormatDocVersions == null) if (_FormatDocVersionCount < 0 || (_FormatDocVersionCount > 0 && _FormatDocVersions == null))
_FormatDocVersions = FormatDocVersions.GetByFormatID(FormatID); _FormatDocVersions = FormatDocVersions.GetByFormatID(FormatID);
else if (_FormatDocVersions == null) if (_FormatDocVersionCount < 0 )
_FormatDocVersionCount = _FormatDocVersions == null ? 0 : _FormatDocVersions.Count;
if (_FormatDocVersions == null)
_FormatDocVersions = FormatDocVersions.New(); _FormatDocVersions = FormatDocVersions.New();
return _FormatDocVersions; return _FormatDocVersions;
} }
} }
public void Reset_FormatDocVersions()
{
_FormatDocVersionCount = -1;
}
private int _FormatFolderCount = 0; private int _FormatFolderCount = 0;
/// <summary> /// <summary>
/// Count of FormatFolders for this Format /// Count of FormatFolders for this Format
@ -406,13 +418,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("FormatFolders", true); CanReadProperty("FormatFolders", true);
if (_FormatFolderCount > 0 && _FormatFolders == null) if (_FormatFolderCount < 0 || (_FormatFolderCount > 0 && _FormatFolders == null))
_FormatFolders = FormatFolders.GetByFormatID(FormatID); _FormatFolders = FormatFolders.GetByFormatID(FormatID);
else if (_FormatFolders == null) if (_FormatFolderCount < 0 )
_FormatFolderCount = _FormatFolders == null ? 0 : _FormatFolders.Count;
if (_FormatFolders == null)
_FormatFolders = FormatFolders.New(); _FormatFolders = FormatFolders.New();
return _FormatFolders; return _FormatFolders;
} }
} }
public void Reset_FormatFolders()
{
_FormatFolderCount = -1;
}
private int _ChildFormatCount = 0; private int _ChildFormatCount = 0;
/// <summary> /// <summary>
/// Count of ChildFormats for this Format /// Count of ChildFormats for this Format
@ -437,13 +455,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ChildFormats", true); CanReadProperty("ChildFormats", true);
if (_ChildFormatCount > 0 && _ChildFormats == null) if (_ChildFormatCount < 0 || (_ChildFormatCount > 0 && _ChildFormats == null))
_ChildFormats = ChildFormats.GetByParentID(FormatID); _ChildFormats = ChildFormats.GetByParentID(FormatID);
else if (_ChildFormats == null) if (_ChildFormatCount < 0 )
_ChildFormatCount = _ChildFormats == null ? 0 : _ChildFormats.Count;
if (_ChildFormats == null)
_ChildFormats = ChildFormats.New(); _ChildFormats = ChildFormats.New();
return _ChildFormats; return _ChildFormats;
} }
} }
public void Reset_ChildFormats()
{
_ChildFormatCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_FormatContents == null ? false : _FormatContents.IsDirty) || (_FormatDocVersions == null ? false : _FormatDocVersions.IsDirty) || (_FormatFolders == null ? false : _FormatFolders.IsDirty) || (_ChildFormats == null ? false : _ChildFormats.IsDirty); } get { return base.IsDirty || (_FormatContents == null ? false : _FormatContents.IsDirty) || (_FormatDocVersions == null ? false : _FormatDocVersions.IsDirty) || (_FormatFolders == null ? false : _FormatFolders.IsDirty) || (_ChildFormats == null ? false : _ChildFormats.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static FormatInfoList _FormatInfoList = null; public static FormatInfoList _FormatInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all FormatInfo.
/// </summary> /// </summary>
public static FormatInfoList Get() public static FormatInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on FormatInfoList.Get", ex); throw new DbCslaException("Error on FormatInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all FormatInfo.
/// </summary>
public static void Reset()
{
_FormatInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static FormatInfoList Get(<criteria>) //public static FormatInfoList Get(<criteria>)
//{ //{

View File

@ -270,13 +270,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("GroupAssignments", true); CanReadProperty("GroupAssignments", true);
if (_GroupAssignmentCount > 0 && _GroupAssignments == null) if (_GroupAssignmentCount < 0 || (_GroupAssignmentCount > 0 && _GroupAssignments == null))
_GroupAssignments = GroupAssignments.GetByGID(GID); _GroupAssignments = GroupAssignments.GetByGID(GID);
else if (_GroupAssignments == null) if (_GroupAssignmentCount < 0 )
_GroupAssignmentCount = _GroupAssignments == null ? 0 : _GroupAssignments.Count;
if (_GroupAssignments == null)
_GroupAssignments = GroupAssignments.New(); _GroupAssignments = GroupAssignments.New();
return _GroupAssignments; return _GroupAssignments;
} }
} }
public void Reset_GroupAssignments()
{
_GroupAssignmentCount = -1;
}
private int _GroupMembershipCount = 0; private int _GroupMembershipCount = 0;
/// <summary> /// <summary>
/// Count of GroupMemberships for this Group /// Count of GroupMemberships for this Group
@ -301,13 +307,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("GroupMemberships", true); CanReadProperty("GroupMemberships", true);
if (_GroupMembershipCount > 0 && _GroupMemberships == null) if (_GroupMembershipCount < 0 || (_GroupMembershipCount > 0 && _GroupMemberships == null))
_GroupMemberships = GroupMemberships.GetByGID(GID); _GroupMemberships = GroupMemberships.GetByGID(GID);
else if (_GroupMemberships == null) if (_GroupMembershipCount < 0 )
_GroupMembershipCount = _GroupMemberships == null ? 0 : _GroupMemberships.Count;
if (_GroupMemberships == null)
_GroupMemberships = GroupMemberships.New(); _GroupMemberships = GroupMemberships.New();
return _GroupMemberships; return _GroupMemberships;
} }
} }
public void Reset_GroupMemberships()
{
_GroupMembershipCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_GroupAssignments == null ? false : _GroupAssignments.IsDirty) || (_GroupMemberships == null ? false : _GroupMemberships.IsDirty); } get { return base.IsDirty || (_GroupAssignments == null ? false : _GroupAssignments.IsDirty) || (_GroupMemberships == null ? false : _GroupMemberships.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static GroupInfoList _GroupInfoList = null; public static GroupInfoList _GroupInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all GroupInfo.
/// </summary> /// </summary>
public static GroupInfoList Get() public static GroupInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on GroupInfoList.Get", ex); throw new DbCslaException("Error on GroupInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all GroupInfo.
/// </summary>
public static void Reset()
{
_GroupInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static GroupInfoList Get(<criteria>) //public static GroupInfoList Get(<criteria>)
//{ //{

View File

@ -310,13 +310,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ItemAnnotations", true); CanReadProperty("ItemAnnotations", true);
if (_ItemAnnotationCount > 0 && _ItemAnnotations == null) if (_ItemAnnotationCount < 0 || (_ItemAnnotationCount > 0 && _ItemAnnotations == null))
_ItemAnnotations = ItemAnnotations.GetByItemID(ItemID); _ItemAnnotations = ItemAnnotations.GetByItemID(ItemID);
else if (_ItemAnnotations == null) if (_ItemAnnotationCount < 0 )
_ItemAnnotationCount = _ItemAnnotations == null ? 0 : _ItemAnnotations.Count;
if (_ItemAnnotations == null)
_ItemAnnotations = ItemAnnotations.New(); _ItemAnnotations = ItemAnnotations.New();
return _ItemAnnotations; return _ItemAnnotations;
} }
} }
public void Reset_ItemAnnotations()
{
_ItemAnnotationCount = -1;
}
private int _ItemDocVersionCount = 0; private int _ItemDocVersionCount = 0;
/// <summary> /// <summary>
/// Count of ItemDocVersions for this Item /// Count of ItemDocVersions for this Item
@ -341,13 +347,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ItemDocVersions", true); CanReadProperty("ItemDocVersions", true);
if (_ItemDocVersionCount > 0 && _ItemDocVersions == null) if (_ItemDocVersionCount < 0 || (_ItemDocVersionCount > 0 && _ItemDocVersions == null))
_ItemDocVersions = ItemDocVersions.GetByItemID(ItemID); _ItemDocVersions = ItemDocVersions.GetByItemID(ItemID);
else if (_ItemDocVersions == null) if (_ItemDocVersionCount < 0 )
_ItemDocVersionCount = _ItemDocVersions == null ? 0 : _ItemDocVersions.Count;
if (_ItemDocVersions == null)
_ItemDocVersions = ItemDocVersions.New(); _ItemDocVersions = ItemDocVersions.New();
return _ItemDocVersions; return _ItemDocVersions;
} }
} }
public void Reset_ItemDocVersions()
{
_ItemDocVersionCount = -1;
}
private int _NextItemCount = 0; private int _NextItemCount = 0;
/// <summary> /// <summary>
/// Count of NextItems for this Item /// Count of NextItems for this Item
@ -372,13 +384,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("NextItems", true); CanReadProperty("NextItems", true);
if (_NextItemCount > 0 && _NextItems == null) if (_NextItemCount < 0 || (_NextItemCount > 0 && _NextItems == null))
_NextItems = NextItems.GetByPreviousID(ItemID); _NextItems = NextItems.GetByPreviousID(ItemID);
else if (_NextItems == null) if (_NextItemCount < 0 )
_NextItemCount = _NextItems == null ? 0 : _NextItems.Count;
if (_NextItems == null)
_NextItems = NextItems.New(); _NextItems = NextItems.New();
return _NextItems; return _NextItems;
} }
} }
public void Reset_NextItems()
{
_NextItemCount = -1;
}
private int _ItemPartCount = 0; private int _ItemPartCount = 0;
/// <summary> /// <summary>
/// Count of ItemParts for this Item /// Count of ItemParts for this Item
@ -403,13 +421,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ItemParts", true); CanReadProperty("ItemParts", true);
if (_ItemPartCount > 0 && _ItemParts == null) if (_ItemPartCount < 0 || (_ItemPartCount > 0 && _ItemParts == null))
_ItemParts = ItemParts.GetByItemID(ItemID); _ItemParts = ItemParts.GetByItemID(ItemID);
else if (_ItemParts == null) if (_ItemPartCount < 0 )
_ItemPartCount = _ItemParts == null ? 0 : _ItemParts.Count;
if (_ItemParts == null)
_ItemParts = ItemParts.New(); _ItemParts = ItemParts.New();
return _ItemParts; return _ItemParts;
} }
} }
public void Reset_ItemParts()
{
_ItemPartCount = -1;
}
private int _ItemTransition_RangeIDCount = 0; private int _ItemTransition_RangeIDCount = 0;
/// <summary> /// <summary>
/// Count of ItemTransitions for this Item /// Count of ItemTransitions for this Item
@ -434,13 +458,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ItemTransitions_RangeID", true); CanReadProperty("ItemTransitions_RangeID", true);
if (_ItemTransition_RangeIDCount > 0 && _ItemTransitions_RangeID == null) if (_ItemTransition_RangeIDCount < 0 || (_ItemTransition_RangeIDCount > 0 && _ItemTransitions_RangeID == null))
_ItemTransitions_RangeID = ItemTransitions_RangeID.GetByRangeID(ItemID); _ItemTransitions_RangeID = ItemTransitions_RangeID.GetByRangeID(ItemID);
else if (_ItemTransitions_RangeID == null) if (_ItemTransition_RangeIDCount < 0 )
_ItemTransition_RangeIDCount = _ItemTransitions_RangeID == null ? 0 : _ItemTransitions_RangeID.Count;
if (_ItemTransitions_RangeID == null)
_ItemTransitions_RangeID = ItemTransitions_RangeID.New(); _ItemTransitions_RangeID = ItemTransitions_RangeID.New();
return _ItemTransitions_RangeID; return _ItemTransitions_RangeID;
} }
} }
public void Reset_ItemTransitions_RangeID()
{
_ItemTransition_RangeIDCount = -1;
}
private int _ItemTransition_ToIDCount = 0; private int _ItemTransition_ToIDCount = 0;
/// <summary> /// <summary>
/// Count of ItemTransitions for this Item /// Count of ItemTransitions for this Item
@ -465,13 +495,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("ItemTransitions_ToID", true); CanReadProperty("ItemTransitions_ToID", true);
if (_ItemTransition_ToIDCount > 0 && _ItemTransitions_ToID == null) if (_ItemTransition_ToIDCount < 0 || (_ItemTransition_ToIDCount > 0 && _ItemTransitions_ToID == null))
_ItemTransitions_ToID = ItemTransitions_ToID.GetByToID(ItemID); _ItemTransitions_ToID = ItemTransitions_ToID.GetByToID(ItemID);
else if (_ItemTransitions_ToID == null) if (_ItemTransition_ToIDCount < 0 )
_ItemTransition_ToIDCount = _ItemTransitions_ToID == null ? 0 : _ItemTransitions_ToID.Count;
if (_ItemTransitions_ToID == null)
_ItemTransitions_ToID = ItemTransitions_ToID.New(); _ItemTransitions_ToID = ItemTransitions_ToID.New();
return _ItemTransitions_ToID; return _ItemTransitions_ToID;
} }
} }
public void Reset_ItemTransitions_ToID()
{
_ItemTransition_ToIDCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_ItemAnnotations == null ? false : _ItemAnnotations.IsDirty) || (_ItemDocVersions == null ? false : _ItemDocVersions.IsDirty) || (_NextItems == null ? false : _NextItems.IsDirty) || (_ItemParts == null ? false : _ItemParts.IsDirty) || (_ItemTransitions_RangeID == null ? false : _ItemTransitions_RangeID.IsDirty) || (_ItemTransitions_ToID == null ? false : _ItemTransitions_ToID.IsDirty) || (_MyContent == null ? false : _MyContent.IsDirty); } get { return base.IsDirty || (_ItemAnnotations == null ? false : _ItemAnnotations.IsDirty) || (_ItemDocVersions == null ? false : _ItemDocVersions.IsDirty) || (_NextItems == null ? false : _NextItems.IsDirty) || (_ItemParts == null ? false : _ItemParts.IsDirty) || (_ItemTransitions_RangeID == null ? false : _ItemTransitions_RangeID.IsDirty) || (_ItemTransitions_ToID == null ? false : _ItemTransitions_ToID.IsDirty) || (_MyContent == null ? false : _MyContent.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static ItemInfoList _ItemInfoList = null; public static ItemInfoList _ItemInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all ItemInfo.
/// </summary> /// </summary>
public static ItemInfoList Get() public static ItemInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on ItemInfoList.Get", ex); throw new DbCslaException("Error on ItemInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all ItemInfo.
/// </summary>
public static void Reset()
{
_ItemInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static ItemInfoList Get(<criteria>) //public static ItemInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static MembershipInfoList _MembershipInfoList = null; public static MembershipInfoList _MembershipInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all MembershipInfo.
/// </summary> /// </summary>
public static MembershipInfoList Get() public static MembershipInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on MembershipInfoList.Get", ex); throw new DbCslaException("Error on MembershipInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all MembershipInfo.
/// </summary>
public static void Reset()
{
_MembershipInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static MembershipInfoList Get(<criteria>) //public static MembershipInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static PartInfoList _PartInfoList = null; public static PartInfoList _PartInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all PartInfo.
/// </summary> /// </summary>
public static PartInfoList Get() public static PartInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on PartInfoList.Get", ex); throw new DbCslaException("Error on PartInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all PartInfo.
/// </summary>
public static void Reset()
{
_PartInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static PartInfoList Get(<criteria>) //public static PartInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static PermissionInfoList _PermissionInfoList = null; public static PermissionInfoList _PermissionInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all PermissionInfo.
/// </summary> /// </summary>
public static PermissionInfoList Get() public static PermissionInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on PermissionInfoList.Get", ex); throw new DbCslaException("Error on PermissionInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all PermissionInfo.
/// </summary>
public static void Reset()
{
_PermissionInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static PermissionInfoList Get(<criteria>) //public static PermissionInfoList Get(<criteria>)
//{ //{

View File

@ -250,13 +250,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("RoleAssignments", true); CanReadProperty("RoleAssignments", true);
if (_RoleAssignmentCount > 0 && _RoleAssignments == null) if (_RoleAssignmentCount < 0 || (_RoleAssignmentCount > 0 && _RoleAssignments == null))
_RoleAssignments = RoleAssignments.GetByRID(RID); _RoleAssignments = RoleAssignments.GetByRID(RID);
else if (_RoleAssignments == null) if (_RoleAssignmentCount < 0 )
_RoleAssignmentCount = _RoleAssignments == null ? 0 : _RoleAssignments.Count;
if (_RoleAssignments == null)
_RoleAssignments = RoleAssignments.New(); _RoleAssignments = RoleAssignments.New();
return _RoleAssignments; return _RoleAssignments;
} }
} }
public void Reset_RoleAssignments()
{
_RoleAssignmentCount = -1;
}
private int _RolePermissionCount = 0; private int _RolePermissionCount = 0;
/// <summary> /// <summary>
/// Count of RolePermissions for this Role /// Count of RolePermissions for this Role
@ -281,13 +287,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("RolePermissions", true); CanReadProperty("RolePermissions", true);
if (_RolePermissionCount > 0 && _RolePermissions == null) if (_RolePermissionCount < 0 || (_RolePermissionCount > 0 && _RolePermissions == null))
_RolePermissions = RolePermissions.GetByRID(RID); _RolePermissions = RolePermissions.GetByRID(RID);
else if (_RolePermissions == null) if (_RolePermissionCount < 0 )
_RolePermissionCount = _RolePermissions == null ? 0 : _RolePermissions.Count;
if (_RolePermissions == null)
_RolePermissions = RolePermissions.New(); _RolePermissions = RolePermissions.New();
return _RolePermissions; return _RolePermissions;
} }
} }
public void Reset_RolePermissions()
{
_RolePermissionCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_RoleAssignments == null ? false : _RoleAssignments.IsDirty) || (_RolePermissions == null ? false : _RolePermissions.IsDirty); } get { return base.IsDirty || (_RoleAssignments == null ? false : _RoleAssignments.IsDirty) || (_RolePermissions == null ? false : _RolePermissions.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static RoleInfoList _RoleInfoList = null; public static RoleInfoList _RoleInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all RoleInfo.
/// </summary> /// </summary>
public static RoleInfoList Get() public static RoleInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on RoleInfoList.Get", ex); throw new DbCslaException("Error on RoleInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all RoleInfo.
/// </summary>
public static void Reset()
{
_RoleInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static RoleInfoList Get(<criteria>) //public static RoleInfoList Get(<criteria>)
//{ //{

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static TransitionInfoList _TransitionInfoList = null; public static TransitionInfoList _TransitionInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all TransitionInfo.
/// </summary> /// </summary>
public static TransitionInfoList Get() public static TransitionInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on TransitionInfoList.Get", ex); throw new DbCslaException("Error on TransitionInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all TransitionInfo.
/// </summary>
public static void Reset()
{
_TransitionInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static TransitionInfoList Get(<criteria>) //public static TransitionInfoList Get(<criteria>)
//{ //{

View File

@ -416,13 +416,19 @@ namespace VEPROMS.CSLA.Library
get get
{ {
CanReadProperty("UserMemberships", true); CanReadProperty("UserMemberships", true);
if (_UserMembershipCount > 0 && _UserMemberships == null) if (_UserMembershipCount < 0 || (_UserMembershipCount > 0 && _UserMemberships == null))
_UserMemberships = UserMemberships.GetByUID(UID); _UserMemberships = UserMemberships.GetByUID(UID);
else if (_UserMemberships == null) if (_UserMembershipCount < 0 )
_UserMembershipCount = _UserMemberships == null ? 0 : _UserMemberships.Count;
if (_UserMemberships == null)
_UserMemberships = UserMemberships.New(); _UserMemberships = UserMemberships.New();
return _UserMemberships; return _UserMemberships;
} }
} }
public void Reset_UserMemberships()
{
_UserMembershipCount = -1;
}
public override bool IsDirty public override bool IsDirty
{ {
get { return base.IsDirty || (_UserMemberships == null ? false : _UserMemberships.IsDirty); } get { return base.IsDirty || (_UserMemberships == null ? false : _UserMemberships.IsDirty); }

View File

@ -58,7 +58,7 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods #region Factory Methods
public static UserInfoList _UserInfoList = null; public static UserInfoList _UserInfoList = null;
/// <summary> /// <summary>
/// Return a list of all projects. /// Return a list of all UserInfo.
/// </summary> /// </summary>
public static UserInfoList Get() public static UserInfoList Get()
{ {
@ -77,6 +77,13 @@ namespace VEPROMS.CSLA.Library
throw new DbCslaException("Error on UserInfoList.Get", ex); throw new DbCslaException("Error on UserInfoList.Get", ex);
} }
} }
/// <summary>
/// Reset the list of all UserInfo.
/// </summary>
public static void Reset()
{
_UserInfoList = null;
}
// TODO: Add alternative gets - // TODO: Add alternative gets -
//public static UserInfoList Get(<criteria>) //public static UserInfoList Get(<criteria>)
//{ //{