|Title:||SQLite EF6: DbSet<T>.SqlQuery() does not work|
|Last Modified:||2019-04-02 16:40:30|
|Version Found In:||(Nuget) 18.104.22.168|
anonymous added on 2019-04-02 10:03:53:
Using SQlite with EF6, the DbSet function "SqlQuery()" gives an IndexOutOfRangeException when the result is enumerated. This seems to happen whenever explicit column names are part of the query. Using "select * from table" does not error but "select col1, col2 from table" does, and so does "select t.* from table t". This is problematic since any query that uses a join will have the error (ie "select t1.* from table1 t1 join table2 t2 on t1.id = t2.id where t2.col2 = 'search value'") I have created an example project on GitHub at [https://github.com/Gravemind2401/SQLiteTest]
anonymous added on 2019-04-02 11:16:37:
After further investigation it looks like with more complex table structures even "select * from table" will give an error.