Sometimes you have the same properties in multiple entities.
The key to making this work is to first deploy a couple of simple extension methods to make reflection a bit easier.
Then it is less daunting of a task to write a generic routine that acts on any entity set with common propertie(s).
Friday, May 18, 2012
Sunday, May 6, 2012
Before compiling this, to ensure your project has a reference to a version of Entity Framework that supports code first development, execute the following nuget command:
The following code listing contains:
- Static method to add an item
- Application configuration (XML)
- Unit test (not required)
Friday, May 4, 2012
- deletes files created more than 3 days ago.
- logs the files it deletes.