We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Possible solution is to check first. There are other solutions on StackOverflow for this issue (e.g https://stackoverflow.com/questions/6966680/max-return-value-if-empty-query)
else { int newtId = Data.Database.People.Any() ? Data.Database.People.Max(p => p.Id) + 1 : 1; Person!.Id = newtId; Data.Database.People.Add(Person); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Possible solution is to check first. There are other solutions on StackOverflow for this issue
(e.g https://stackoverflow.com/questions/6966680/max-return-value-if-empty-query)
The text was updated successfully, but these errors were encountered: