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.
Roy Dictus
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
Get in touch with Roy
Contact Roy, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack