I am using scope.GetObjectById(oid) to load single Object. How would I know that this is been retrieved from context or from Database, Do I need to refresh it or not......
Suppose I load Customer by following code..
IObjectId oid = Database.OID.ParseObjectId(typeof(Customer), "1");
var record = (Customer)scope.GetObjectById(oid);
after few mins, I again call above code to get same object which was been modified by another user...
How can I find if I need scope.refresh to get latest copy or not...... as If I cannot find and write scope.Refresh(record);
then for most of the cases, data will be retrieved from Database twice.