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’ »