borisdj / EFCore.BulkExtensions

Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite

Home Page:https://codis.tech/efcorebulk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schema changed after the target table was created. Rerun the Select Into query.

kf-ryszardseniuta opened this issue · comments

I am using InsertOrUpdate from
and I started getting "Schema changed after the target table was created. Rerun the Select Into query.".
However, I have not changed the schema.

I attached an interceptor and I see this command throws that error:

[SELECT TOP 0 T.[Id], T.[Company], ...
INTO [dbo].[ContactTempcc31725] 
FROM [dbo].[Contact] AS T 
LEFT JOIN [dbo].[Contact] AS Source ON 1 = 0;]

Can you write entire code snipped or a test where the issue would be reproducible.