by
11k 24
0
5
136k
1
Top 1% !
Popular
Pearl of Wisdom
Specified
OpenSource
Popularity: 14835th place
No tags for this snippet yet.
Architecturex86_64
LanguageCSharp
LicenseMIT_X11
OSWindows
Windows VersionWindows7

IsSQLiteDbProviderInstalled

check if SQLite DB Provider is installed
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/476024/IsSQLiteDbProviderInstalled?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Reflection; using System.ServiceModel.Syndication; using System.Xml; using ErikEJ.SqlCeScripting; using Microsoft.VisualStudio.Data.Core; using Microsoft.VisualStudio.Data.Services; using Microsoft.Win32; using Exceptionless; using ErikEJ.SqlCeToolbox.Dialogs; using ErikEJ.SQLiteScripting; internal static bool IsSQLiteDbProviderInstalled() { try { System.Data.Common.DbProviderFactories.GetFactory("System.Data.SQLite.EF6"); } catch (System.Configuration.ConfigurationException) { return false; } catch (ArgumentException) { return false; } return true; }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus