public bool IsCachedObject(MetaType type, object instance) { if (type == null) { throw Error.ArgumentNull("type"); } if (!type.IsEntity) { return(false); } return(IdentityManager.FindLike(type, instance) == instance); }
internal object GetCachedObjectLike(MetaType type, object instance) { if (type == null) { throw Error.ArgumentNull("type"); } if (!type.IsEntity) { return(null); } return(IdentityManager.FindLike(type, instance)); }