Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use System.Data.SQLite.Linq [closed]

Tags:

c#

sqlite

linq

I was wondering how to just use System.Data.SQLite.Linq to query SQLite database, without Entity Framework involved.

I had used decompiler tool to check System.Data.SQLite.Linq and System.Data.SQLite.EF6, it seems like they are the same except the namespace and EntityFramework is referenced by the latter.

I see the following description on the official website: http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki enter image description here

As far as I understand, any package that support Linq should implement the IQueryProvider and IQueryable interfaces, but I don't see this in package System.Data.SQLite.Linq.

Can someone explain it? Thanks a lot!

like image 845
Johnny Qian Avatar asked Apr 05 '18 23:04

Johnny Qian


1 Answers

I have analysed their sources and cannot even understand for which purpose it was introduced and how it is related with LINQ.

If you need good SQLite LINQ support without EF, I know only one library which can do that effectively linq2db (disclaimer, I'm one of the creators)

like image 60
Svyatoslav Danyliv Avatar answered Nov 14 '22 11:11

Svyatoslav Danyliv