/// <summary> /// Reloads the provided instance of <typeparamref name="T"/> from the database /// </summary> /// <typeparam name="T">The Entity Type being reloaded</typeparam> /// <param name="item">The <typeparamref name="T"/> you want to reload</param> /// <returns>The <typeparamref name="T"/> you reloaded</returns> public T Reload <T>(T item) where T : class { _log.DebugFormat("Reloading Object {0}", item); var id = Advanced.GetDocumentId(item); item = Load <T>(id); _log.TraceFormat("Reloaded Object {0}", item); return(item); }