EntityCollection.AddRange

Posts   
 
    
arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 10-Feb-2006 00:49:37   

Is DoNotAddIfPresent honored by AddRange?

If so, is there a way to make it use a Set<T> or Dictionary<T,U> of primary keys, or is there a reason that might be a bad thing to do.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 10-Feb-2006 07:35:15   

DoNotAddIfPresent is checked on EntityCollection.Add() And EntityCollection.AddRange() simply calls EntityCollection.Add() for each Entity.