Changed GetIdValue to use UniqueID

This commit is contained in:
Rich
2009-10-21 20:49:28 +00:00
parent d2e964dde1
commit 7bc7129faf
84 changed files with 318 additions and 138 deletions

View File

@@ -244,7 +244,7 @@ namespace VEPROMS.CSLA.Library
/// <returns>A Unique ID for the current Part</returns>
protected override object GetIdValue()
{
return (_ContentID.ToString() + "." + _FromType.ToString()).GetHashCode();
return MyPartUnique; // Absolutely Unique ID
}
#endregion
#region ValidationRules
@@ -369,7 +369,7 @@ namespace VEPROMS.CSLA.Library
protected static int PartUnique
{ get { return ++_PartUnique; } }
private int _MyPartUnique = PartUnique;
public int MyPartUnique
public int MyPartUnique // Absolutely Unique ID - Editable
{ get { return _MyPartUnique; } }
protected Part()
{/* require use of factory methods */