Use Reflection and Expression to Find an Entity by Primary Key

On occasion I maintain a project based on Entity Framework Database First approach.  This project is using ObjectContext.  I was recently working on a generic feature that was requiring me to find an entity based on primary key. In order to do this I have to dynamically create a where clause that filders data based …

Continue reading ‘Use Reflection and Expression to Find an Entity by Primary Key’ »

Enterprise Library Database Logging and TransactionScope

I have recently worked on a project that was using enterprise library logging capabilities.  Enterprise Libiary information can be viewed on pattern and practices web site.  These library includes a number of useful components,  The one I am going to cover here is database logging capabilities. Logging features allows an application to be configured to …

Continue reading ‘Enterprise Library Database Logging and TransactionScope’ »