Better yet we'll use the strongly typed way:

    sql.Select("app").From<User2AppDto>()
        .Where<User2AppDto>(dto => dto.UserId == (int)user.Id);