Since you most likely do not want to write the code for every entity and model pair, you should rely on reflection to map the properties which are the same between the entity and model and then just compare those values with the property Infos.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile