1 type derived from TrackedObject
System.Data.Linq (1)
ChangeTracker.cs (1)
208class StandardTrackedObject : TrackedObject {
136 references to TrackedObject
System.Data.Linq (136)
ChangeConflicts.cs (4)
148private TrackedObject trackedObject; 160internal ObjectChangeConflict(ChangeConflictSession session, TrackedObject trackedObject) { 172internal ObjectChangeConflict(ChangeConflictSession session, TrackedObject trackedObject, bool isDeleted) 181internal TrackedObject TrackedObject {
ChangeDirector.cs (30)
20internal abstract int Insert(TrackedObject item); 21internal abstract int DynamicInsert(TrackedObject item); 22internal abstract void AppendInsertText(TrackedObject item, StringBuilder appendTo); 24internal abstract int Update(TrackedObject item); 25internal abstract int DynamicUpdate(TrackedObject item); 26internal abstract void AppendUpdateText(TrackedObject item, StringBuilder appendTo); 28internal abstract int Delete(TrackedObject item); 29internal abstract int DynamicDelete(TrackedObject item); 30internal abstract void AppendDeleteText(TrackedObject item, StringBuilder appendTo); 49List<KeyValuePair<TrackedObject, object[]>> syncRollbackItems; 56private List<KeyValuePair<TrackedObject, object[]>> SyncRollbackItems { 59syncRollbackItems = new List<KeyValuePair<TrackedObject, object[]>>(); 65internal override int Insert(TrackedObject item) { 83internal override int DynamicInsert(TrackedObject item) { 102internal override void AppendInsertText(TrackedObject item, StringBuilder appendTo) { 116internal override int Update(TrackedObject item) { 136internal override int DynamicUpdate(TrackedObject item) { 155internal override void AppendUpdateText(TrackedObject item, StringBuilder appendTo) { 166internal override int Delete(TrackedObject item) { 184internal override int DynamicDelete(TrackedObject item) { 196internal override void AppendDeleteText(TrackedObject item, StringBuilder appendTo) { 212foreach (KeyValuePair<TrackedObject, object[]> rollbackItemPair in this.SyncRollbackItems) { 213TrackedObject rollbackItem = rollbackItemPair.Key; 230private Expression GetInsertCommand(TrackedObject item) { 283private void AutoSyncMembers(object[] syncResults, TrackedObject item, UpdateType updateType, AutoSyncBehavior autoSyncBehavior) { 310this.SyncRollbackItems.Add(new KeyValuePair<TrackedObject, object[]>(item, syncRollbackValues)); 314private Expression GetUpdateCommand(TrackedObject tracked) { 350private Expression GetUpdateCheck(Expression serverItem, TrackedObject tracked) { 379private Expression GetDeleteCommand(TrackedObject tracked) { 398private Expression GetDeleteVerificationCommand(TrackedObject tracked) {
ChangeProcessor.cs (77)
67List<TrackedObject> deletedItems = new List<TrackedObject>(); 68List<TrackedObject> insertedItems = new List<TrackedObject>(); 69List<TrackedObject> syncDependentItems = new List<TrackedObject>(); 71foreach (TrackedObject item in list) { 121foreach (TrackedObject syncDependentItem in syncDependentItems) { 138private void PostProcessUpdates(List<TrackedObject> insertedItems, List<TrackedObject> deletedItems) { 140foreach (TrackedObject deletedItem in deletedItems) { 147foreach (TrackedObject insertedItem in insertedItems) { 162private void ClearForeignKeyReferences(TrackedObject to) { 243private static void ValidateAll(IEnumerable<TrackedObject> list) { 244foreach (var item in list) { 263private static void SendOnValidate(MetaType type, TrackedObject item, ChangeAction changeAction) { 290foreach (TrackedObject item in this.GetOrderedList()) { 318foreach (TrackedObject item in this.tracker.GetInterestingObjects()) { 338private static void CheckForInvalidChanges(TrackedObject tracked) { 368List<TrackedObject> items = new List<TrackedObject>(this.tracker.GetInterestingObjects()); 369foreach (TrackedObject item in items) { 375foreach (TrackedObject item in this.tracker.GetInterestingObjects()) { 393TrackedObject tracked = this.tracker.GetTrackedObject(item); 416TrackedObject cachedTracked = this.tracker.GetTrackedObject(cached); 437TrackedObject cachedTracked = this.tracker.GetTrackedObject(cached); 462List<TrackedObject> items = new List<TrackedObject>(this.tracker.GetInterestingObjects()); 463foreach (TrackedObject item in items) { 471TrackedObject tracked = this.tracker.GetTrackedObject(item); 499private TrackedObject GetOtherItem(MetaAssociation assoc, object instance) { 518private bool HasAssociationChanged(MetaAssociation assoc, TrackedObject item) { 542List<TrackedObject> list = new List<TrackedObject>(this.tracker.GetInterestingObjects()); 543foreach (TrackedObject item in list) { 548TrackedObject otherItem = this.GetOtherItem(assoc, item.Current); 549TrackedObject dbOtherItem = this.GetOtherItem(assoc, item.Original); 574private List<TrackedObject> GetOrderedList() { 583var visited = new Dictionary<TrackedObject, VisitState>(); 584var list = new List<TrackedObject>(); 585foreach (TrackedObject item in ordered) { 591private static int Compare(TrackedObject x, int xOrdinal, TrackedObject y, int yOrdinal) { 644private void BuildDependencyOrderedList(TrackedObject item, List<TrackedObject> list, Dictionary<TrackedObject, VisitState> visited) { 659foreach (TrackedObject other in this.originalChildReferences[item]) { 673TrackedObject other = this.currentParentEdges[assoc, item]; 682TrackedObject prevItem = this.originalChildEdges[assoc, other]; 699Dictionary<MetaAssociation, Dictionary<TrackedObject, TrackedObject>> associations; 702this.associations = new Dictionary<MetaAssociation, Dictionary<TrackedObject, TrackedObject>>(); 705internal void Add(MetaAssociation assoc, TrackedObject from, TrackedObject to) { 706Dictionary<TrackedObject, TrackedObject> pairs; 708pairs = new Dictionary<TrackedObject, TrackedObject>(); 714internal TrackedObject this[MetaAssociation assoc, TrackedObject from] { 716Dictionary<TrackedObject, TrackedObject> pairs; 718TrackedObject to; 732Dictionary<TrackedObject, List<TrackedObject>> references; 735this.references = new Dictionary<TrackedObject, List<TrackedObject>>(); 738internal void Add(TrackedObject from, TrackedObject to) { 739List<TrackedObject> refs; 741refs = new List<TrackedObject>(); 748internal IEnumerable<TrackedObject> this[TrackedObject from] { 750List<TrackedObject> refs; 762private static TrackedObject[] Empty = new TrackedObject[] { };
ChangeTracker.cs (15)
19internal abstract TrackedObject Track(object obj); 28internal abstract TrackedObject Track(object obj, bool recurse); 35internal abstract TrackedObject GetTrackedObject(object obj); 38internal abstract IEnumerable<TrackedObject> GetInterestingObjects(); 81internal override TrackedObject Track(object obj) { 85internal override TrackedObject Track(object obj, bool recurse) { 91private TrackedObject Track(MetaType mt, object obj, Dictionary<object, object> visited, bool recurse, int level) { 142internal override TrackedObject GetTrackedObject(object obj) { 195foreach (TrackedObject item in list) { 200internal override IEnumerable<TrackedObject> GetInterestingObjects() { 845internal override TrackedObject Track(object obj) { return null; } 846internal override TrackedObject Track(object obj, bool recurse) { return null; } 849internal override TrackedObject GetTrackedObject(object obj) { return null; } 852internal override IEnumerable<TrackedObject> GetInterestingObjects() { return new TrackedObject[0]; }
DataContext.cs (10)
611TrackedObject trackedObject = this.services.ChangeTracker.GetTrackedObject(o); 834TrackedObject tracked = this.services.ChangeTracker.GetTrackedObject(entity); 851TrackedObject tracked = this.services.ChangeTracker.GetTrackedObject(entity); 871TrackedObject tracked = this.services.ChangeTracker.GetTrackedObject(entity); 1226TrackedObject tracked = this.context.Services.ChangeTracker.GetTrackedObject(entity); 1314TrackedObject tracked = this.context.Services.ChangeTracker.GetTrackedObject(entity); 1419TrackedObject tracked = this.Context.Services.ChangeTracker.GetTrackedObject(entity); 1474TrackedObject tracked = this.context.Services.ChangeTracker.GetTrackedObject(entity); 1577TrackedObject tracked = this.Context.Services.ChangeTracker.GetTrackedObject(entity); 1614TrackedObject tracked = this.Context.Services.ChangeTracker.GetTrackedObject(entity);