Using EF Core, Fluent API, specifying a schema at table level is done like:
modelBuilder.Entity<MyRecord>().ToTable("MyRecord", "mySchema");
Is there an alternative way to specify schema for a table, or multiple tables without having to string the table and schema names?
Just from the point of view of coding efficiency, it is a bit redundant to have to also include the table name when it maps directly to the entity name for each table / entity.
It can be set globally with modelBuilder.HasDefaultSchema("mySchema")
but this won't help when working with different schemas.