Rating: No reviews yet
Downloads: 42
Change Set: 4cc5fc1cfb13
Released: Nov 13, 2013
Updated: Nov 13, 2013 by tonysneed
Dev status: Stable Help Icon

Recommended Download

Source Code
source code, 518K, uploaded Nov 13, 2013 - 42 downloads

Release Notes

Consists of three libraries, which are available as packages on

ITrackingState interface with TrackingState enum, for use by client and service projects.

Portable class library with a change-tracking collection that sets state as entities are added, removed, or modified.

TrackableEntities.EF.5, TrackableEntities.EF.6:
Contain extension methods for DbContext which set entity state, so they can be persisted in a single transaction.

Changes in Version 1.0.1 (from v 1.0)
  • EF5 and EF6 libraries include an AcceptChanges extension method on ITrackable, which sets entities in the object graph to Unchanged and removes ModifiedProperties. Call this method in a service after persisting updates and before returning updated entities to the client.
  • Client library includes a MergeChanges method on ChangeTrackingCollection, which merges updates into an existing entity after an update has taken place, setting tracking state to Unchanged.
  • Project and T4 templates updated to include calls to AcceptChanges and MergeChanges.
  • Other project and T4 template improvements, such as loading related entities in both PUT and POST operations, and minor bug fixes.
  • Updated all samples to use version 1.0.1 of libraries and templates.

Reviews for this release

No reviews yet for this release.