Joe

Thanks for the work helping make the linq side happen!

> Ruth Ivimey-Cook wrote:
>> If I try to query database existence using Linq's "DatabaseExists" I get
>> a NotImplemented exception in the sqlite ChangeDatabase function - which
>> doesn't make sense to me.
> I have never in my life messed with Linq, but I did poke around a bit
> getting the testlinq program to work.
All the examples I've seen for sqlite.net have been using direct calls 
to the api. I am new to Linq too but it seemed appropriate to the matter 
at hand.

> Does it work for you?  You'll probably have to fix the connection
> strings in the App.Config for it.
I've done the app.config thing to register the linq provider, though in 
fact I couldn't make it work when I tried; I ended up passing an 
explicit sqlite connection into linq (which also means I can specify a 
file at runtime).

So far the create database thing is my bugbear. It doesn't seem hard or 
bad practice to implement "create database" as a no-op (or better, an 
expunge of the current file so that the app sees an empty database).

I guess a workaround could be to modify the wrapper to search/replace 
create database out of existence... that really does seem like a hack!

Sadly Linq as implemented in .net 3.5 doesn't allow for database-less 
databases :-)

Regards
Ruth

-- 
Software Manager&  Engineer
Tel: 01223 414180
Blog: http://www.ivimey.org/blog
LinkedIn: http://uk.linkedin.com/in/ruthivimeycook/


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to