In my previous post I wrote about overriding the LinqToEntitiesDomainService.CreateObjectContext() method to dynamically set the connection string for the used by the domain service. I realised that I would be using this in a couple of different services in my current project and potentially use it in the future so I wrote a generic abstract [...]
Posts Tagged ‘reflection’
Abstract class to dynamically alter EntityFramework Domain Service connection
Posted: 24th June 2010 by thegrayzone in DevelopmentTags: C#, Entity Framework, reflection, WCF RIA Services
4
Checking for property differences in object
Posted: 14th May 2010 by thegrayzone in DevelopmentTags: C#, reflection
I recently had to come up with a way to check the properties to 2 similar objects and find any differences between them. The solution that I came up with was to write a generic extension method that compares the 2 objects and returns a list of ObjectDifferences objects. The ObjectDifferences class is as follows: [...]