FalconExtend/Falcon.ModelSP/IServiceCollectionExtend.cs

23 lines
680 B
C#
Raw Normal View History

2019-08-26 09:23:35 +08:00
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
namespace Falcon.ModelSP
{
/// <summary>
/// IServiceCollection扩展
/// </summary>
public static class IServiceCollectionExtend
{
/// <summary>
/// 注册对数据库存储过程模型化的调用扩展
/// </summary>
/// <param name="services">注册服务集合</param>
/// <returns></returns>
public static IServiceCollection UseFalconSP(this IServiceCollection services) {
return services.AddSingleton<IFalconSPRuner,FalconSPRuner>();
}
}
}