Pomelo.EntityFrameworkCore.MySql icon indicating copy to clipboard operation
Pomelo.EntityFrameworkCore.MySql copied to clipboard

Remove MySqlSchemaBehavior in favor of a warning

Open lauxjpn opened this issue 5 years ago • 0 comments
trafficstars

We should consider removing MySqlSchemaBehavior in favor of a warning that throws by default if a schema is being used, but can be ignored if explicitly configured so.

Instead of a SchemaBehavior() call, users could then use a SchemaNameTranslator() call to directly specify a custom schema name translator. The default one would just ignore the schema name and just use the object name. It would be used in case the warning gets ignored and no custom schema name translator has been set. It also makes sense to implicitly ignore the warning if a custom schema name translator has been set

This would be more in line with general EF Core practices.

lauxjpn avatar Oct 13 '20 14:10 lauxjpn