Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -168,7 +168,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current ContentPart</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _FromType;
|
||||
return MyContentPartUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base ContentPart.ToString function as necessary
|
||||
/// <summary>
|
||||
@@ -311,6 +311,12 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Factory Methods
|
||||
public int CurrentEditLevel
|
||||
{ get { return EditLevel; } }
|
||||
private static int _ContentPartUnique = 0;
|
||||
private static int ContentPartUnique
|
||||
{ get { return ++_ContentPartUnique; } }
|
||||
private int _MyContentPartUnique = ContentPartUnique;
|
||||
public int MyContentPartUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyContentPartUnique; } }
|
||||
internal static ContentPart New(int fromType, Item myItem)
|
||||
{
|
||||
return new ContentPart(fromType, myItem);
|
||||
|
Reference in New Issue
Block a user