Skip to content

SqlDelete query text misplaced bracket #7126

Answered by VictorTomaili
edwardch asked this question in Help
Discussion options

You must be logged in to vote
new SqlDelete(MyRow.Fields.TableName)
    .Where(MyRow.Fields.SourceTableId.NotIn(
        ~(new Criteria(new SqlQuery()
            .Select(TableARow.Fields.SourceTableId)
            .From(TableARow.Fields)
            .Union()
            .Select(TableBRow.Fields.SourceTableId)
            .From(TableBRow.Fields)
        ))
    )
    .Execute(uow.Connection, ExpectedRows.Ignore);

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@edwardch
Comment options

@VictorTomaili
Comment options

Answer selected by edwardch
@edwardch
Comment options

@edwardch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants