dotnet-data/PoweredSoft.Data.EntityFrameworkCore/ServiceCollectionExtensions.cs
2018-11-23 01:22:05 -06:00

18 lines
504 B
C#

using Microsoft.Extensions.DependencyInjection;
using PoweredSoft.Data.Core;
using System;
using System.Collections.Generic;
using System.Text;
namespace PoweredSoft.Data.EntityFrameworkCore
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddPoweredSoftDataServices(this IServiceCollection services)
{
services.AddTransient<IDbContextFactoryProvider, DbContextFactoryProvider>();
return services;
}
}
}