示例#1
0
        public virtual RoscoeDbCommand Build(IParameterFactory parameterFactory)
        {
            Check.IsNotNull(parameterFactory, nameof(parameterFactory));

            using (var builder = new DbCommandBuilder(parameterFactory))
            {
                using var scope = ServiceProvider.CreateScope();

                this.BuildCommand(builder, scope.ServiceProvider);

                return(builder.Build());
            }
        }