EF Core 1.1 and SQL Server 2016
We are running a microservice application with some microservices having independent few tables. One of the solutions to have many tables for individual microservice, is to give these services a unique schema (e.g. not DBO) and put all of them in one database (good for cost + maintenance).
That works fine in EF 6, however, looking at the generated dbo.__EFMigrationsHistory in core, it looks like core doesn't take the schema into account.
I am aware that the migration in EF Core has changed to look in the code rather than the DB, but my problem is the version that is recorded in the dbo.__EFMigrationsHistory table is schema-agnostic.
Do you know how can we make EF Core schema-aware when it writes the migration to the db?
N.B. builder.HasDefaultSchema(Constants.SCHEMA);
is already set in the DBContext.