PawelGerr / Thinktecture.EntityFrameworkCore

These libraries extend Entity Framework Core by a few features to make it easier to work with EF and for easier integration testing or to get more performance in some special cases.
https://dev.azure.com/pawelgerr/Thinktecture.EntityFrameworkCore
BSD 3-Clause "New" or "Revised" License
66 stars 17 forks source link

Invalid object name #Temp{Entity} #57

Open symbarh opened 7 months ago

symbarh commented 7 months ago

BulkInsertIntoTempTableAsync creates a temp table named #Temp{Entity}_1, but the query is referencing #Temp{Entity}

PawelGerr commented 7 months ago

Could you please provide a small repro?

symbarh commented 7 months ago

I found a workaround; I implemented a custom ITempTableNameProvider and a ITempTableNameLease to return a temporary table name without the integer suffix. I will provide a reproducible code when I find the time. Thank you.