예제 #1
0
        public static void AliaSql(this ICakeContext context, AliaSqlSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            var runner = new AliaSqlRunner(context.FileSystem, context.Environment, context.ProcessRunner,
                                           context.Tools);

            runner.Run(settings);
        }
예제 #2
0
        public static void AliaSql(this ICakeContext context, AliaSqlSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            var runner = new AliaSqlRunner(context.FileSystem, context.Environment, context.ProcessRunner,
                context.Tools);

            runner.Run(settings);
        }