Remove unnecessary `virtual` specification on `Refresh`

This commit is contained in:
Dean Herbert 2021-11-25 14:06:12 +09:00
parent 306e13fa7b
commit fd321109da
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public abstract class DatabaseBackedStore
/// <param name="obj">The object to use as a reference when negotiating a local instance.</param> /// <param name="obj">The object to use as a reference when negotiating a local instance.</param>
/// <param name="lookupSource">An optional lookup source which will be used to query and populate a freshly retrieved replacement. If not provided, the refreshed object will still be returned but will not have any includes.</param> /// <param name="lookupSource">An optional lookup source which will be used to query and populate a freshly retrieved replacement. If not provided, the refreshed object will still be returned but will not have any includes.</param>
/// <typeparam name="T">A valid EF-stored type.</typeparam> /// <typeparam name="T">A valid EF-stored type.</typeparam>
protected virtual void Refresh<T>(ref T obj, IQueryable<T> lookupSource = null) where T : class, IHasPrimaryKey protected void Refresh<T>(ref T obj, IQueryable<T> lookupSource = null) where T : class, IHasPrimaryKey
{ {
using (var usage = ContextFactory.GetForWrite()) using (var usage = ContextFactory.GetForWrite())
{ {