Does any know if one can set the table schema of code first classes based on the classes\' namespace?
For example, every class in namespace Core.Foo would
Core.Foo
In EF 6.2 or EF Core, use the Schema property to specify the schema name for a Db table as shown below:
[Table("TableName", Schema = "Foo")] public class Entity { //Properties }
Details Here