Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -196,7 +196,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current ItemPart</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return (((((_ContentID.ToString() + _FromType.ToString()).GetHashCode().ToString()).GetHashCode().ToString()).GetHashCode().ToString()).GetHashCode().ToString()).GetHashCode();
|
||||
return MyItemPartUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base ItemPart.ToString function as necessary
|
||||
/// <summary>
|
||||
@@ -316,6 +316,12 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Factory Methods
|
||||
public int CurrentEditLevel
|
||||
{ get { return EditLevel; } }
|
||||
private static int _ItemPartUnique = 0;
|
||||
private static int ItemPartUnique
|
||||
{ get { return ++_ItemPartUnique; } }
|
||||
private int _MyItemPartUnique = ItemPartUnique;
|
||||
public int MyItemPartUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyItemPartUnique; } }
|
||||
internal static ItemPart New(Content myContent, int fromType)
|
||||
{
|
||||
return new ItemPart(myContent, fromType);
|
||||
|
Reference in New Issue
Block a user