I\'m currently planning on switching my \"manual query-writing\" code to a nice SQL framework, so I can leave the queries or sql things to the framework, instead of writing
You can use Single or First methods.
Single
First
The difference between those methods is that Single expects a single row and throws an exception if it doesn't have a single row.
The usage is the same for both of them