Cannot create WebAPI controllers with EF Code First

Today I found this strange error on a WebApi project with EF Code First for Oracle.

This error blocks the wizard and does not allows you to create any new Web API controllers.

I finally found out that the cause of the problems was just an attribute on one of the generated files:

[Column(TypeName = "rowid")]

It seems that these [Column(TypeName = "xxxx")] attributes cause the generator to crash.

Workaround :)

  1. Comment it out
  2. Rebuild
  3. Add your controller
  4. Un comment the line