Index: SQLite.Designer/SQLiteOptions.cs ================================================================== --- SQLite.Designer/SQLiteOptions.cs +++ SQLite.Designer/SQLiteOptions.cs @@ -35,15 +35,21 @@ /// design-time components. It is also the default value for the /// associated option key. /// private static readonly string DefaultProviderName = "System.Data.SQLite"; + /////////////////////////////////////////////////////////////////////// + +#if NET_40 || NET_45 || NET_451 /// /// This is the provider name used when Entity Framework 6.x support is /// required for use with the System.Data.SQLite design-time components. + /// This provider name is only available when this class is compiled for + /// the .NET Framework 4.0 or later. /// private static readonly string Ef6ProviderName = "System.Data.SQLite.EF6"; +#endif #endregion /////////////////////////////////////////////////////////////////////// #region Private Static Data @@ -274,13 +280,16 @@ ) { if (String.Equals( key, ProviderNameKey, StringComparison.Ordinal) && (String.Equals( - value, DefaultProviderName, StringComparison.Ordinal) || - String.Equals( - value, Ef6ProviderName, StringComparison.Ordinal))) + value, DefaultProviderName, StringComparison.Ordinal) +#if NET_40 || NET_45 || NET_451 + || String.Equals( + value, Ef6ProviderName, StringComparison.Ordinal) +#endif + )) { return true; } return false;