예제 #1
0
        public void Sql(string sqlStatement, string description)
        {
            var expression = new InternalExecuteSqlStatementExpression
            {
                SqlStatement = sqlStatement,
                AdditionalSqlTitleConverterFunc = sql => description.IsNotEmpty() ? description : AdditionalSqlTitleConverter(sql)
            };

            _context.Expressions.Add(expression);
        }
예제 #2
0
        /// <inheritdoc />
        public void Sql(string sqlStatement)
        {
            var expression = new InternalExecuteSqlStatementExpression
            {
                SqlStatement = sqlStatement,
                AdditionalSqlTitleConverterFunc = AdditionalSqlTitleConverter
            };

            _context.Expressions.Add(expression);
        }
예제 #3
0
 /// <inheritdoc />
 public override string ToString()
 {
     return(InternalExecuteSqlStatementExpression.StaticToString(GetType(), SqlScript, AdditionalSqlTitleConverterFunc));
 }