Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -360,7 +360,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current FormatDocVersion</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _VersionID;
|
||||
return MyFormatDocVersionUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base FormatDocVersion.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 _FormatDocVersionUnique = 0;
|
||||
private static int FormatDocVersionUnique
|
||||
{ get { return ++_FormatDocVersionUnique; } }
|
||||
private int _MyFormatDocVersionUnique = FormatDocVersionUnique;
|
||||
public int MyFormatDocVersionUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyFormatDocVersionUnique; } }
|
||||
internal static FormatDocVersion New(Folder myFolder, string name)
|
||||
{
|
||||
return new FormatDocVersion(myFolder, name);
|
||||
|
Reference in New Issue
Block a user