in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

VISUAL STUDIO 2010 Beta 2

Last post 11-17-2011 1:55 AM by Bib34690. 68 replies.
Page 5 of 5 (69 items) < Previous 1 2 3 4 5
Sort Posts: Previous Next
  • 11-03-2011 11:54 AM In reply to

    Re: VISUAL STUDIO 2010 Beta 2

    Yes you can, by executing the statement 'PRAGMA journal_mode=WAL;'

    http://www.sqlite.org/draft/wal.html (Activating And Configuring WAL Mode)

  • 11-03-2011 1:05 PM In reply to

    • 0l1v3r
    • Not Ranked
    • Joined on 11-01-2011
    • Posts 2

    Re: VISUAL STUDIO 2010 Beta 2

    Ok, but how would we then specify the Connection String ? Do we just leave out the journal specification ? And when using the Designer and creating a Connection, would it not be an issue when chosing a mode from the list that is not WAL, but the DB is WAL ?
  • 11-03-2011 1:27 PM In reply to

    • Zest
    • Not Ranked
    • Joined on 11-03-2011
    • Posts 2

    Re: VISUAL STUDIO 2010 Beta 2

     I tried invoking objectcontext constructor with my own connectionstring at run time and it failed.

    It finally worked by providing the journal mode=WAL in app.config file.

     

     

  • 11-09-2011 7:24 AM In reply to

    Re: VISUAL STUDIO 2010 Beta 2

    What must be do to deploy a solution using SqLite.dll without running Setup ?

    actually, i get an exception if i run my app on machine where setup is not installed.

    Thanks for help.

  • 11-09-2011 8:51 AM In reply to

    Re: VISUAL STUDIO 2010 Beta 2

    In my project, I have added the SQLite.Interop.066.DLL and set the [Build Action] = [Content] and set the [Copy to Output Directory] = [Copy if newer]. Still, *after* I open my my connection, I receive the unhandled Missing Method Exception message "Can't find PInvoke DLL 'SQLite.Interop.DLL" whenever I attempt to execute the reader on the SQLiteCommand. What is wrong?
    Joe
  • 11-15-2011 12:09 AM In reply to

    Re: VISUAL STUDIO 2010 Beta 2

     

    ion123, Could you give us setup source code to see what is done to make sqlite working on client configuration, or can you explain what to do ?

    Is it necessary to update registry or to copy files in windows directory ?

    thanks for your great work

  • 11-15-2011 10:07 AM In reply to

    Do Not Waste Your Time Here (unless reading for old solutions in the archives)

    This forum is still up and running, but I do not believe anyone from SQLite comes here anymore. Their current website is www.sqlite.org, where you will see that they are up to Version 3.7.9.
    Joe
  • 11-15-2011 12:37 PM In reply to

    Re: VISUAL STUDIO 2010 Beta 2

    When you are not using the entity framework, you will only need the "System.Data.SQLite.dll" (for the correct platform [x86 or x64]).

    When your application is targeting "Any CPU" the "System.Data.SQLite.dll" (x86 and x64) will need to be installed to the GAC to let it pick the right version.

    When using the entity framework, you will need "System.Data.SQLite.dll" and "System.Data.SQLite.Linq.dll". Also the provider needs to be registered:

    In app.config or globally in machine.config

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    	<system.data>
    		<DbProviderFactories>
    			<remove invariant="System.Data.SQLite"/>
    			<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
    		</DbProviderFactories>
    	</system.data>
    </configuration>

    The source is available here:

    https://bitbucket.org/ionkiwi/sqlite.net4

  • 11-17-2011 1:55 AM In reply to

    Re: VISUAL STUDIO 2010 Beta 2

     thanks ion123

Page 5 of 5 (69 items) < Previous 1 2 3 4 5
Powered by Community Server (Commercial Edition), by Telligent Systems