Disable quoted identifiers in CodeFirst
Posted: Thu 01 Nov 2012 16:16
I'm working on a project where we have a manually created Oracle database connected to .NET using a "Code First" configuration. In this specific scenario, we've disabled all database generation from Code First, and we're using it as a pure code-based ORM layer only.
For the sanity of our Oracle team, we do not want to use "quoted" table or field names - they require the ability to query the database without being forced to use quotes forever. By default, the dotConnect for Oracle entity driver wraps all identifiers in quotes.
I tried setting Workarounds.DisableQuoting = true on OracleEntityProviderConfig, but we encountered some problems. We isolated one of the issues to a property named "Number" which is a reserved word in Oracle, but I thought I'd check and see if there are any other potential problems from disabling quoting.
For the sanity of our Oracle team, we do not want to use "quoted" table or field names - they require the ability to query the database without being forced to use quotes forever. By default, the dotConnect for Oracle entity driver wraps all identifiers in quotes.
I tried setting Workarounds.DisableQuoting = true on OracleEntityProviderConfig, but we encountered some problems. We isolated one of the issues to a property named "Number" which is a reserved word in Oracle, but I thought I'd check and see if there are any other potential problems from disabling quoting.