Hi,
What I want to be able to do is perform a Context Get, but if an item with the supplied primary key was not already in the context and/or was not in the database then get some indication that that was the case, and not end up with an object in the context.
Ideally I would like to be able to make a call along the lines of
MyEntity entity = context.GetIfExists( new MyEntity( pk ) );
which would return null if the item did not exist in the context or the database.
Is there a neat way of obtaining this same functionality using alternative calls?
thanks
Mike