Do not say Dbfirst Fortunately, it and Modelfirst,codefirst are each have a good, because of already exist a large business library, use entityframework more inclined to Dbfirst, because many colleagues have been accustomed to directly modify the database.
Download Oracle Dbac (x86) (Cannot download please leave a message), turn off VS, and then install the downloaded compressed package inside the Setup.exe. Install the settings of the two directories, must not have special characters, you can use the same, @, () and so do not have.
Happy to open vs, then create a new EDMX, create a new connection, after that, see a lot of tables, select, save sensitive information, not save as, and then click Done. OK, I see the newly generated edmx, but there is no data in it. No table is mapped. Found in the Error list, because the federated primary key is set in Oracle, then the enable of the Federated primary key is set to false, and the field in the Federated primary key is set to nullable, causing the entity to report the "Union primary key partial attribute cannot be null" error.
Re-process, compile the system once, and then add the entity-based WEBAPI controller, all OK.
vs2015 Installing Oracle's Dbfirst