Fix build break
This commit is contained in:
parent
c7559e1ff4
commit
fdc4df35ed
|
|
@ -6,6 +6,7 @@ using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using Microsoft.AspNetCore.Mvc.ApplicationModels;
|
using Microsoft.AspNetCore.Mvc.ApplicationModels;
|
||||||
using Microsoft.AspNetCore.Mvc.Internal;
|
using Microsoft.AspNetCore.Mvc.Internal;
|
||||||
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
|
|
@ -67,7 +68,9 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
|
||||||
|
|
||||||
private static ApplicationModelProviderContext GetContext(Type type)
|
private static ApplicationModelProviderContext GetContext(Type type)
|
||||||
{
|
{
|
||||||
var defaultProvider = new DefaultApplicationModelProvider(Options.Create(new MvcOptions()));
|
var defaultProvider = new DefaultApplicationModelProvider(
|
||||||
|
Options.Create(new MvcOptions()),
|
||||||
|
new EmptyModelMetadataProvider());
|
||||||
|
|
||||||
var context = new ApplicationModelProviderContext(new[] { type.GetTypeInfo() });
|
var context = new ApplicationModelProviderContext(new[] { type.GetTypeInfo() });
|
||||||
defaultProvider.OnProvidersExecuting(context);
|
defaultProvider.OnProvidersExecuting(context);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue