SQLite Forum

Creating Virtual Table with EF context.Database.EnsureCreated()
Login

Creating Virtual Table with EF context.Database.EnsureCreated()

(1) By Nik (NiklasRieger) on 2021-04-11 20:14:57 [source]

Hello, would be possible to create Virtual Table using EF Core context.Database.EnsureCreated()? I would expect something like [Virtual] attribute to the respective model class.

The reason for a creating virtual table is using FTS for SQLite in-memory DB. I understand that I can use runtime migrations but EnsureCreated() is so neat and convenient.