Question

I'm working on a project that uses EF code first style with Sql Server, and someone was wondering if EF uses or creates any temporary tables automatically.

I figured it might use some other temporary objects if it had to, but I'm not really sure.

Does Entity Framework create or use any temporary tables when setup for a CodeFirst project with default conventions?

Was it helpful?

Solution

No. Grepping the sources there are only irrelevant matches for CREATE TABLE. There's nothing in EF's normal operations that does this.

OTHER TIPS

It does not create any temporary tables. However depending on which version of EF you are using, and whether or not you are using model migrations, it does create infrastructures table(s).

For example older versions create dbo.EdmMetadata, and newer versions create dbo.__MigrationHistory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top