Changed GetIdValue to use UniqueID
This commit is contained in:
@@ -373,7 +373,7 @@ namespace VEPROMS.CSLA.Library
|
||||
/// <returns>A Unique ID for the current GroupAssignment</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _AID;
|
||||
return MyGroupAssignmentUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base GroupAssignment.ToString function as necessary
|
||||
/// <summary>
|
||||
@@ -563,6 +563,12 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Factory Methods
|
||||
public int CurrentEditLevel
|
||||
{ get { return EditLevel; } }
|
||||
private static int _GroupAssignmentUnique = 0;
|
||||
private static int GroupAssignmentUnique
|
||||
{ get { return ++_GroupAssignmentUnique; } }
|
||||
private int _MyGroupAssignmentUnique = GroupAssignmentUnique;
|
||||
public int MyGroupAssignmentUnique // Absolutely Unique ID - Editable FK
|
||||
{ get { return _MyGroupAssignmentUnique; } }
|
||||
internal static GroupAssignment New(Role myRole, Folder myFolder)
|
||||
{
|
||||
return new GroupAssignment(myRole, myFolder);
|
||||
|
Reference in New Issue
Block a user