Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Permit the default ADO.NET provider name used by the design-time components to be overridden via the environment. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | designOptions |
Files: | files | file ages | folders |
SHA1: |
e2413cdd97eabb69c3ff2bd643216f2e |
User & Date: | mistachkin 2014-08-01 17:13:30.839 |
Context
2014-08-01
| ||
18:19 | Initially, disable the provider_Changed event in the connection properties user-interface. check-in: 2154db970d user: mistachkin tags: designOptions | |
17:13 | Permit the default ADO.NET provider name used by the design-time components to be overridden via the environment. check-in: e2413cdd97 user: mistachkin tags: designOptions | |
04:32 | Make sure the EF6 provider name is only available for .NET 4.0 and later. check-in: 1e2ed0931a user: mistachkin tags: designOptions | |
Changes
Changes to SQLite.Designer/SQLiteOptions.cs.
︙ | ︙ | |||
26 27 28 29 30 31 32 33 34 35 36 37 38 39 | /// This is the name of the setting containing the configured ADO.NET /// provider name. /// </summary> private static readonly string ProviderNameKey = "ProviderName"; /////////////////////////////////////////////////////////////////////// /// <summary> /// This is the legacy provider name used by the System.Data.SQLite /// design-time components. It is also the default value for the /// associated option key. /// </summary> private static readonly string DefaultProviderName = "System.Data.SQLite"; | > > > > > > > > > > > | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | /// This is the name of the setting containing the configured ADO.NET /// provider name. /// </summary> private static readonly string ProviderNameKey = "ProviderName"; /////////////////////////////////////////////////////////////////////// /// <summary> /// This is the name of the environment variable that will be checked /// prior to setting the initial default value for the configured /// ADO.NET provider name, thus allowing the default value to be /// overridden via the environment. /// </summary> private static readonly string ProviderNameEnvVarName = "ProviderName_SQLiteDesigner"; /////////////////////////////////////////////////////////////////////// /// <summary> /// This is the legacy provider name used by the System.Data.SQLite /// design-time components. It is also the default value for the /// associated option key. /// </summary> private static readonly string DefaultProviderName = "System.Data.SQLite"; |
︙ | ︙ | |||
87 88 89 90 91 92 93 | lock (syncRoot) { if (options != null) options.Clear(); else options = new Dictionary<string, string>(); | > > > > > > > | | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | lock (syncRoot) { if (options != null) options.Clear(); else options = new Dictionary<string, string>(); string key = ProviderNameKey; string value = Environment.GetEnvironmentVariable( ProviderNameEnvVarName); if (IsValidValue(key, value)) options[key] = value; else options[key] = DefaultProviderName; } } #endregion /////////////////////////////////////////////////////////////////////// #region Public Static Methods |
︙ | ︙ |