예제 #1
0
 public bool IdUnique(string id)
 {
     return
         (!IdsActive.Contains(id) &&
          !IdsInactive.Contains(id) &&
          !IdsDeletedActive.Contains(id) &&
          !IdsDeletedInactive.Contains(id));
 }
예제 #2
0
 public void ActivateId(string id)
 {
     if (IdsInactive.Contains(id))
     {
         IdsInactive.Remove(id);
         IdsActive.Add(id);
     }
     else if (IdsDeletedInactive.Contains(id))
     {
         IdsDeletedInactive.Remove(id);
         IdsDeletedActive.Add(id);
     }
 }
예제 #3
0
 public bool IdNotDeleted(string id)
 {
     return
         (IdsActive.Contains(id) ||
          IdsInactive.Contains(id));
 }