Changed GetIdValue to use UniqueID

This commit is contained in:
Rich
2009-10-21 20:49:28 +00:00
parent d2e964dde1
commit 7bc7129faf
84 changed files with 318 additions and 138 deletions

View File

@@ -360,7 +360,7 @@ namespace VEPROMS.CSLA.Library
/// <returns>A Unique ID for the current ItemDocVersion</returns>
protected override object GetIdValue()
{
return _VersionID;
return MyItemDocVersionUnique; // Absolutely Unique ID
}
// TODO: Replace base ItemDocVersion.ToString function as necessary
/// <summary>
@@ -525,6 +525,12 @@ namespace VEPROMS.CSLA.Library
#region Factory Methods
public int CurrentEditLevel
{ get { return EditLevel; } }
private static int _ItemDocVersionUnique = 0;
private static int ItemDocVersionUnique
{ get { return ++_ItemDocVersionUnique; } }
private int _MyItemDocVersionUnique = ItemDocVersionUnique;
public int MyItemDocVersionUnique // Absolutely Unique ID - Editable FK
{ get { return _MyItemDocVersionUnique; } }
internal static ItemDocVersion New(Folder myFolder, string name)
{
return new ItemDocVersion(myFolder, name);