2.0.0.0

Rating: No reviews yet
Downloads: 0
Released: Feb 21, 2013
Updated: Feb 21, 2013 by MMMicha
Dev status: Stable Help Icon

Available Downloads

There are no downloads associated with this release.

Release Notes

Releases are maintained with NuGet

To download System.Data.Entity.Repository use NuGet within visual studio and search for "System.Data.Entity.Repository" in the official NuGet packages.
Updates will be available trough NuGet.

New Features:
  • Changed the UpdateProperty<R,T> method. Signature is now UpdateProperty<R>(R entity, params Expression<Func<R, object>>[] properties).
Removed the Type registriction of T and added use of params for the properties list so we can add multiple properties in the UpdateProperty call like:

Customer stub = new Customer { CustomerID = 1 };
stub.LastCreated = DateTime.Now;
stub.FirstName = "I am a stub customer";
stub.Age = 27;

UpdateProperty<Customer>(stub, x => x.LastCreated, x => x.FirstName, x => x.Age);

Now only those three fields will be updated. If you had used the Update<T> method then all fields would be sent to the database. That most likely will fail because there are properties that are non nullable.

Bugs:
  • None

Reviews for this release

No reviews yet for this release.