How to Query Associations using Dictionary?

You can use an SQL expression to query directly by the database column name, as described here:

For example:

ObjectManager.Find<TChildEntity>
  .Select(TProjections.Count(csId))
  .Where(Linq.Sql<Integer>('A.parent_id = ?'), someValue)