public EntitySet(IEnumerable <T> source) : base() { _contains = new SlimConcurrentDictionary <T, bool>(Globals.DefaultLargerDictionaryCapacity); BoundScope = CEF.CurrentServiceScope; foreach (var i in source) { this.Add(CEF.IncludeObject <T>(i, ObjectState.Unchanged)); } EndInit(); }
protected override void ClearItems() { _contains = new SlimConcurrentDictionary <T, bool>(Globals.DefaultLargerDictionaryCapacity); base.ClearItems(); }
public EntitySet(ServiceScope ss) : base() { _contains = new SlimConcurrentDictionary <T, bool>(Globals.DefaultLargerDictionaryCapacity); BoundScope = ss; EndInit(); }