Is there any way of finding out if an objects exists in your model or data source simply by supplying a primary key. A unique key that should only refer to a record or entity that exists in your database.
i.e pass in a GUID and the model will tell you if it has anything by that uses the same key value.
Using EF 4.0.
My two cents: Haven’t tried it but seems to be along the the right track from what I was looking for:
How to get an Entity Framework Anyways – Code Project