Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateIf - Sql Server: how to check flag (bool) is true or false? #115

Open
PatryxCShark opened this issue Sep 14, 2021 · 0 comments
Open

Comments

@PatryxCShark
Copy link

.UpdateIf((dcInDb, dcNew) => dcInDb.IsConnected)

  • In Sqlite it works
  • In Sql Server it does not work:
    SqlException: An expression of non-boolean type specified in a context where a condition is expected, near 'AND'.

.UpdateIf((dcInDb, dcNew) => dcInDb.IsConnected == true)

  • In Sqlite it does not work

Any idea how to check if column is true or false (IsConnected field is boolean in c#)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant