質問

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?

役に立ちましたか?

解決

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

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top