Files
AgileConfig/AgileConfig.Server.Data.Freesql/ServiceCollectionExt.cs
T
2020-09-21 15:40:10 +08:00

16 lines
415 B
C#

using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
namespace AgileConfig.Server.Data.Freesql
{
public static class ServiceCollectionExt
{
public static void AddFreeSqlDbContext(this IServiceCollection sc)
{
sc.AddFreeDbContext<FreeSqlContext>(options => options.UseFreeSql(FreeSQL.Instance));
}
}
}