コード例 #1
0
        /// <inheritdoc />
        public void Script(string pathToSqlScript)
        {
            var expression = new InternalExecuteSqlScriptExpression
            {
                SqlScript = pathToSqlScript,
                AdditionalSqlTitleConverterFunc = AdditionalSqlTitleConverter
            };

            _context.Expressions.Add(expression);
        }
コード例 #2
0
        /// <inheritdoc />
        public void Script(string pathToSqlScript, IDictionary <string, string> parameters)
        {
            var expression = new InternalExecuteSqlScriptExpression
            {
                SqlScript  = pathToSqlScript,
                Parameters = parameters,
                AdditionalSqlTitleConverterFunc = AdditionalSqlTitleConverter
            };

            _context.Expressions.Add(expression as ExecuteSqlScriptExpression);
        }