Determining Whether an Entity Framework POCO Property is Part of the EF model

0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×

I had a problem recently whereby I had a generic repository base with a function that needed to identify object properties that were actually part of the entity framework model. This was surprisingly straight forward:

Given the poco object (pocoObject), property name (propertyName) and DbContext (dbContext):

Hopefully this is pretty straight forward!

The Essential App Marketing Kit
Subscribe To My Newsletter To Get an Entire Chapter From The Book for FREE
Never display this again
0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×