dotnet-data/PoweredSoft.Data.MongoDB/ServiceCollectionExtensions.cs
2019-02-13 20:01:47 -06:00

20 lines
620 B
C#

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using PoweredSoft.Data.Core;
using System;
using System.Collections.Generic;
using System.Text;
namespace PoweredSoft.Data.MongoDB
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddPoweredSoftMongoDBDataServices(this IServiceCollection services)
{
services.AddPoweredSoftDataServices();
services.TryAddTransient<IAsyncQueryableHandlerService, AsyncQueryableHandlerService>();
return services;
}
}
}