mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-19 13:39:19 +08:00
16 lines
415 B
C#
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));
|
|
}
|
|
}
|
|
}
|