Using EF 6 and "Code First from database" it generates a "OnModelCreating" that is 20k lines approximately 688k of code against our large (650+ tables) database. This causes IIS to append as it is larger than the 32-bit 256kb stack limit. I do not think there is any way to have EF put the Fluent API model bindings per class, which would clearly solve this problem.
To solve this problem currently I have to make smaller "OnModelCreatingX" methods and call those from the "OnModelCreating" method - ya rly.
Is there any refactor tool to take a huge method and split that method into smaller methods?