/// <summary> /// ctor /// </summary> /// <param name="options"></param> public DapperHelper(IOptions <DapperOptions> options) { this._options = options.Value; }
public static IApplicationBuilder UseDapper(this IApplicationBuilder builder, DapperOptions options) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return(builder.UseMiddleware <DapperMiddleWare>(Options.Create(options))); }
public DapperMiddleWare(RequestDelegate next, IOptions <DapperOptions> options) { this._next = next; this._options = options.Value; }