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 ContentDetail</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _DetailID;
|
||||
return MyContentDetailUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base ContentDetail.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 _ContentDetailUnique = 0;
|
||||
private static int ContentDetailUnique
|
||||
{ get { return ++_ContentDetailUnique; } }
|
||||
private int _MyContentDetailUnique = ContentDetailUnique;
|
||||
public int MyContentDetailUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyContentDetailUnique; } }
|
||||
internal static ContentDetail New(int itemType, string text)
|
||||
{
|
||||
return new ContentDetail(itemType, text);
|
||||
|
Reference in New Issue
Block a user