Thinktecture.EntityFrameworkCore icon indicating copy to clipboard operation
Thinktecture.EntityFrameworkCore copied to clipboard

Invalid object name #Temp{Entity}

Open symbarh opened this issue 3 months ago • 2 comments

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

symbarh avatar Mar 22 '24 14:03 symbarh

Could you please provide a small repro?

PawelGerr avatar Mar 22 '24 15:03 PawelGerr

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.

symbarh avatar Mar 22 '24 18:03 symbarh