2 writes to entities
System.Data.Linq (2)
38 references to entities
System.Data.Linq (38)
Types.cs (38)
175foreach (TEntity e in es.entities) entities.Add(e);
187return entities.Count;
194if (index < 0 || index >= entities.Count)
196return entities[index];
200if (index < 0 || index >= entities.Count)
205TEntity old = entities[index];
210entities[index] = value;
223if (!entities.Contains(entity)) {
226entities.Add(entity);
227OnListChanged(ListChangedType.ItemAdded, entities.IndexOf(entity));
240if (!entities.Contains(e)) {
243entities.Add(e);
244OnListChanged(ListChangedType.ItemAdded, entities.IndexOf(e));
271if (entities.Items != null) {
272List<TEntity> removeList = new List<TEntity>(entities.Items);
289if (entities.Count > 0) Array.Copy(entities.Items, 0, array, arrayIndex, entities.Count);
317return entities.IndexOf(entity);
328entities.Insert(index, entity);
394ItemList<TEntity> addedEntities = entities;
396foreach (TEntity e in source) entities.Add(e);
397foreach (TEntity e in addedEntities) entities.Include(e);
398foreach (TEntity e in removedEntities) entities.Remove(e);
419index = entities.IndexOf(entity);
421entities.RemoveAt(index);
429index = entities.IndexOf(entity);
432entities.RemoveAt(index);
454TEntity entity = entities[index];
456entities.RemoveAt(index);
519this.items = entitySet.entities.Items;
521this.endIndex = entitySet.entities.Count - 1;
562int i = entities.Count;
563entities.Add(entity);
608if (entities.Count > 0) Array.Copy(entities.Items, 0, array, index, entities.Count);