dotnet-dynamic-query/PoweredSoft.DynamicQuery.AspNetCore/MvcBuilderExtensions.cs

19 lines
503 B
C#
Raw Normal View History

using Microsoft.Extensions.DependencyInjection;
using PoweredSoft.Data;
using System;
using System.Collections.Generic;
using System.Text;
namespace PoweredSoft.DynamicQuery.AspNetCore
{
public static class MvcBuilderExtensions
{
2018-11-23 01:17:05 -05:00
public static IMvcBuilder AddPoweredSoftDynamicQuery(this IMvcBuilder builder)
{
builder.Services.AddPoweredSoftDataServices();
2018-11-23 01:17:05 -05:00
builder.Services.AddPoweredSoftDynamicQuery();
return builder;
}
}
}