Search code examples
c#oracleentity-frameworkentity-framework-4.1odac

define database schema name universally in entity framework 4.1


i know you can define the entity's schema name per class by using ToTable("TableName", "SchemaName") but is there a way to set it up so you can set the schema name for all tables in the configuration as i am getting some weird results when i am using some types of relationship mapping and split entity mapping where it is reverting back to the default dbo.TableName in the internal sql queries

see this earlier post for sql output example


Solution

  • Since final EFv4.1 version doesn't have public API for custom conventions you cannot change the schema globally from the API.