ServiceStack.OrmLite equivalent of Single/SingleOrDefault from Entity Framework
问题 Currently when using OrmLite library from ServiceStack if I want single entity selected I do: AppUser user = db.First<AppUser>(q => q.Id == id); However since Single is more precise (obviously I want exception thrown if somehow multiple users with same id ended up in database) I was wondering if there is overload that I can use. Currently when I do db.Single I just get that overload with manual filtering: public static T SingleOrDefault<T>(this IDbConnection dbConn, string filter); 回答1: OK, I