Ejemplo n.º 1
0
    internal static TableBuilder <TColumns> Sql <TColumns>(
        this TableBuilder <TColumns> tableBuilder,
        Func <string, string> sql,
        bool suppressTransaction  = false,
        object anonymousArguments = null)
    {
        string      sqlStatement = sql(tableBuilder.GetTableName());
        DbMigration dbMigration  = tableBuilder.GetDbMigration();
        Action <string, bool, object> executeSql = dbMigration.GetSqlMethod();

        executeSql(sqlStatement, suppressTransaction, anonymousArguments);
        return(tableBuilder);
    }