1 override of Current
System.Data.Linq (1)
ChangeTracker.cs (1)
273internal override object Current {
37 references to Current
System.Data.Linq (37)
ChangeConflicts.cs (2)
189get { return this.trackedObject.Current; } 389this.currentValue = metaMember.StorageAccessor.GetBoxedValue(conflict.TrackedObject.Current);
ChangeDirector.cs (12)
68item.Type.Table.InsertMethod.Invoke(this.context, new object[] { item.Current }); 121item.Type.Table.UpdateMethod.Invoke(this.context, new object[] { item.Current }); 169item.Type.Table.DeleteMethod.Invoke(this.context, new object[] { item.Current }); 239return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type, resultSelector.Body.Type }, Expression.Constant(item.Current), resultSelector); 242return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type }, Expression.Constant(item.Current)); 296object current = item.Current; 336return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.Constant(tracked.Current), check, resultSelector); 339return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.Constant(tracked.Current), resultSelector); 343return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type }, Expression.Constant(tracked.Current), check); 346return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type }, Expression.Constant(tracked.Current)); 355this.GetMemberExpression(Expression.Constant(tracked.Current), mt.VersionMember.Member) 402Expression pred = Expression.Lambda(Expression.Equal(p, Expression.Constant(tracked.Current)), p);
ChangeProcessor.cs (22)
148object lookup = this.services.InsertLookupCachedObject(insertedItem.Type, insertedItem.Current); 149if (lookup != insertedItem.Current) { 150throw new DuplicateKeyException(insertedItem.Current, Strings.DatabaseGeneratedAlreadyExistingKey); 174object[] keyValues = CommonDataServices.GetForeignKeyValues(assoc, to.Current); 184collection.Remove(to.Current); 186ClearForeignKeysHelper(assoc, to.Current); 195ClearForeignKeysHelper(assoc, to.Current); 203ClearForeignKeysHelper(assoc, to.Current); 269type.OnValidateMethod.Invoke(item.Current, new object[] { changeAction }); 321newEntities.Add(item.Current); 324deletedEntities.Add(item.Current); 329changedEntities.Add(item.Current); 370this.TrackUntrackedObjects(item.Type, item.Current, visited); 464this.ObserveUntrackedObjects(item.Type, item.Current, visited); 519if (item.Original != null && item.Current != null) { 520if (assoc.ThisMember.StorageAccessor.HasAssignedValue(item.Current) || 521assoc.ThisMember.StorageAccessor.HasLoadedValue(item.Current) 523return this.GetOtherItem(assoc, item.Current) != this.GetOtherItem(assoc, item.Original); 526object[] currentFKs = CommonDataServices.GetForeignKeyValues(assoc, item.Current); 548TrackedObject otherItem = this.GetOtherItem(assoc, item.Current); 623object xValue = mm.StorageAccessor.GetBoxedValue(x.Current); 624object yValue = mm.StorageAccessor.GetBoxedValue(y.Current);
DataContext.cs (1)
1583return (TEntity) tracked.CreateDataCopy(tracked.Current);