Database generation, Oracle, name for Primary Keys and Indexes
Posted: Mon 14 Apr 2014 15:43
Hi,
#A) Using EF DB migrations and DotConnect for Oracle, is there a way to customize naming for:
- Primary keys
- Indexes
We've been able to configure naming for:
- Identity sequence and identity trigger (using OracleCreateTableConfiguration)
- Foreign keys (using standard name attribute in DbMigration TableBuilder ForeignKey)
But found no way for primary keys and indexes:
- The standard 'name' attribute on the PrimaryKey builder method does not seem used when generating the database
- We can't find anything to specify index name
#B) If we run a SQL script to configure these names, will we run into trouble when running update migrations (since these scripts make changes that are not included in the db migrations model / serialized state)
Thanks,
#A) Using EF DB migrations and DotConnect for Oracle, is there a way to customize naming for:
- Primary keys
- Indexes
We've been able to configure naming for:
- Identity sequence and identity trigger (using OracleCreateTableConfiguration)
- Foreign keys (using standard name attribute in DbMigration TableBuilder ForeignKey)
But found no way for primary keys and indexes:
- The standard 'name' attribute on the PrimaryKey builder method does not seem used when generating the database
- We can't find anything to specify index name
#B) If we run a SQL script to configure these names, will we run into trouble when running update migrations (since these scripts make changes that are not included in the db migrations model / serialized state)
Thanks,