예제 #1
0
        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();
        }
예제 #2
0
 protected override void ClearItems()
 {
     _contains = new SlimConcurrentDictionary <T, bool>(Globals.DefaultLargerDictionaryCapacity);
     base.ClearItems();
 }
예제 #3
0
 public EntitySet(ServiceScope ss) : base()
 {
     _contains  = new SlimConcurrentDictionary <T, bool>(Globals.DefaultLargerDictionaryCapacity);
     BoundScope = ss;
     EndInit();
 }