Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -252,7 +252,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current ContentRoUsage</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _ROUsageID;
|
||||
return MyContentRoUsageUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base ContentRoUsage.ToString function as necessary
|
||||
/// <summary>
|
||||
@@ -407,6 +407,12 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Factory Methods
|
||||
public int CurrentEditLevel
|
||||
{ get { return EditLevel; } }
|
||||
private static int _ContentRoUsageUnique = 0;
|
||||
private static int ContentRoUsageUnique
|
||||
{ get { return ++_ContentRoUsageUnique; } }
|
||||
private int _MyContentRoUsageUnique = ContentRoUsageUnique;
|
||||
public int MyContentRoUsageUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyContentRoUsageUnique; } }
|
||||
internal static ContentRoUsage New(string roid, RODb myRODb)
|
||||
{
|
||||
return new ContentRoUsage(roid, myRODb);
|
||||
|
Reference in New Issue
Block a user