public static long Count <T>(this IDbCommand dbCmd) { SqlExpressionVisitor <T> expression = OrmLiteConfig.DialectProvider.ExpressionVisitor <T>(); string sql = expression.ToCountStatement(); return(dbCmd.GetScalar <long>(sql)); }
public static long Count <T>(this IDbCommand dbCmd, SqlExpressionVisitor <T> expression) { string sql = expression.ToCountStatement(); return(dbCmd.GetScalar <long>(sql)); }