Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -244,7 +244,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current ItemAnnotation</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _AnnotationID;
|
||||
return MyItemAnnotationUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base ItemAnnotation.ToString function as necessary
|
||||
/// <summary>
|
||||
@@ -402,6 +402,12 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Factory Methods
|
||||
public int CurrentEditLevel
|
||||
{ get { return EditLevel; } }
|
||||
private static int _ItemAnnotationUnique = 0;
|
||||
private static int ItemAnnotationUnique
|
||||
{ get { return ++_ItemAnnotationUnique; } }
|
||||
private int _MyItemAnnotationUnique = ItemAnnotationUnique;
|
||||
public int MyItemAnnotationUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyItemAnnotationUnique; } }
|
||||
internal static ItemAnnotation New(AnnotationType myAnnotationType)
|
||||
{
|
||||
return new ItemAnnotation(myAnnotationType);
|
||||
|
Reference in New Issue
Block a user