dotnet-data/PoweredSoft.Data.EntityFrameworkCore/ServiceCollectionExtensions.cs

18 lines
504 B
C#
Raw Normal View History

2018-11-23 02:22:05 -05:00
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;
}
}
}