示例#1
0
 public bool IdUnique(string id)
 {
     return
         (!IdsActive.Contains(id) &&
          !IdsInactive.Contains(id) &&
          !IdsDeletedActive.Contains(id) &&
          !IdsDeletedInactive.Contains(id));
 }
示例#2
0
 public void DeactivateId(string id)
 {
     if (IdsActive.Contains(id))
     {
         IdsActive.Remove(id);
         IdsInactive.Add(id);
     }
     else if (IdsDeletedActive.Contains(id))
     {
         IdsDeletedActive.Remove(id);
         IdsDeletedInactive.Add(id);
     }
 }
示例#3
0
 public bool IdDeleted(string id)
 {
     return
         (IdsDeletedActive.Contains(id) ||
          IdsDeletedInactive.Contains(id));
 }