using System; using System.Collections.Generic; namespace Kit.Helpers.SqlHelperAbstract { public class RequestParams { public IConnectionString ConnectionString { get; } public string CommandText { get; } public bool IsStoredProcedure { get; } public bool WithStrictSyntax { get; } public IEnumerable> Parameters { get; } public IEnumerable CustomTypes { get; } public RequestParams( IConnectionString connectionString, string sqlText, bool isStoredProcedure, bool withStrictSyntax, IEnumerable> parameters, IEnumerable customTypes ) { ConnectionString = connectionString; CommandText = sqlText; IsStoredProcedure = isStoredProcedure; WithStrictSyntax = withStrictSyntax; Parameters = parameters; CustomTypes = customTypes; } } public class RequestParamsSelect : RequestParams { public RequestParamsSelect( IConnectionString connectionString, string sqlText, bool isStoredProcedure, bool withStrictSyntax, IEnumerable> parameters, IEnumerable customTypes, params Action>[] converters ) : base(connectionString, sqlText, isStoredProcedure, withStrictSyntax, parameters, customTypes) { Converters = converters; } public IEnumerable>> Converters { get; } } }