You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application code (which uses EFCore.Sql) runs this just fine. But when my test code runs using SQLite In-Memory, I get an exception: 'no such table: INFORMATION_SCHEMA.COLUMNS'
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'no such table: INFORMATION_SCHEMA.COLUMNS'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
at EFCore.BulkExtensions.TableInfo.CheckHasIdentityAsync(DbContext context, CancellationToken cancellationToken)
at EFCore.BulkExtensions.SqlBulkOperation.MergeAsync[T](DbContext context, IList`1 entities, TableInfo tableInfo, OperationType operationType, Action`1 progress, CancellationToken cancellationToken)
at MyCode.Repositories.UserRepository.<>c__DisplayClass5_0.<<Sync>b__0>d.MoveNext() in C:\projects\MyCode\Repositories\UserRepository.cs:line 48
INFORMATION_SCHEMA.COLUMNS isn't part of my data model and isn't something I'm trying to create or work with. Do I need to configure or tweak EF Core or SQLite to get it to support Bulk Operations when operation in-memory mode?
I've tried turning on EF core logging and can see my Db Model being processed and tables being created, but no output on the Bulk Operations, so I'm unsure what generated sql statements are looking for this Information_Schema.Columns table.
The text was updated successfully, but these errors were encountered:
Cross posting with this StackOverflow question: https://stackoverflow.com/questions/60690567/efcore-bulk-insert-sqlite-in-memory-no-such-table-information-schema-columns
I'm using EFCore BulkExtensions
2.5.0
with EntityFrameworkCore2.2.3
and EFCore.SQLite2.2.6
.I have some code like:
My application code (which uses EFCore.Sql) runs this just fine. But when my test code runs using SQLite In-Memory, I get an exception: 'no such table: INFORMATION_SCHEMA.COLUMNS'
INFORMATION_SCHEMA.COLUMNS
isn't part of my data model and isn't something I'm trying to create or work with. Do I need to configure or tweak EF Core or SQLite to get it to support Bulk Operations when operation in-memory mode?I've tried turning on EF core logging and can see my Db Model being processed and tables being created, but no output on the Bulk Operations, so I'm unsure what generated sql statements are looking for this Information_Schema.Columns table.
The text was updated successfully, but these errors were encountered: