Pergunta

Linqpad v4.26

This process works great on my Dev box. I hand copied to the end-user install folder linqpad.exe, linqpad.exe.config, custom.dll, system.data.sqlite.dll and system.data.sqlite.linq.dll.

I create a connection, click radio button Use a typed data context form your own assembly. Select Entity Framework, Select Next, Browse to my custom dll. Choose Provider radio button to other. System.Data.SQLite is not in the drop down.

I ran the sqlite setup-bundle installer on my Dev box in order to get sqlite installed in the GAC to support VS2010 designer.

Thanks,

John

Foi útil?

Solução

The dropdown that shows database providers is populated with System.Data.Common.DbProviderFactories.GetFactoryClasses(). If SQLite is not listed, then it hasn't been registered in the machine.config. However, LINQPad doesn't stop you from entering the name of the provider manually, as you would in constructing an Entity Framework connection string.

Outras dicas

+1, because even though I can see it in the drop down it doesn't appear to be valid.

I have now done the following to no avail:

  1. Ran sqlite-netFx40-Setup-x86-2010-1.0.82.0.exe on the client machine.
  2. Copy/pasted from the readme.htm sections into the Linqpad.exe.config file.
  3. Copied the System.Data.SQLite.dlls from Program Files\System.data.sqlite to the app dir where I installed Linqpad.
  4. Fired up linqpad selected my custom provider. It shows all of the tables but as soon as I try and run any query I get exceptions.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top