Entity Framework Core (incl. 2.2) doesn’t have a first-class API for PostgreSQL table partitioning. You can still use code-first and migrations, but you must create the partitioned table and its partitions with raw SQL inside your migration(s), and then map your entity to the parent table.