Ormlite SingleOrDefault or FirstOrDefault

What is the best equivalent of those methods that will run and return the result or a null object if it isn’t found?

ie db.SingleOrDefault(x=>x.Id == id)

All db.Single* APIs return null if no results are returned so it behaves similarly to LINQ’s FirstOrDefault().

1 Like