Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -171,7 +171,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current RODbROImage</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _ImageID;
|
||||
return MyRODbROImageUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base RODbROImage.ToString function as necessary
|
||||
/// <summary>
|
||||
@@ -304,6 +304,12 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Factory Methods
|
||||
public int CurrentEditLevel
|
||||
{ get { return EditLevel; } }
|
||||
private static int _RODbROImageUnique = 0;
|
||||
private static int RODbROImageUnique
|
||||
{ get { return ++_RODbROImageUnique; } }
|
||||
private int _MyRODbROImageUnique = RODbROImageUnique;
|
||||
public int MyRODbROImageUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyRODbROImageUnique; } }
|
||||
internal static RODbROImage New(string fileName, byte[] content)
|
||||
{
|
||||
return new RODbROImage(fileName, content);
|
||||
|
Reference in New Issue
Block a user