System.Data.SQLite
Check-in [2d0a56c918]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add comments.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tkt-8d928c3e88
Files: files | file ages | folders
SHA1:2d0a56c918f66bc7a80056637634dfd108e0e239
User & Date: mistachkin 2015-01-09 04:10:04
Context
2015-01-09
04:11
Make the storage schema (SSDL) files more consistent with their provider names. check-in: b59de72204 user: mistachkin tags: tkt-8d928c3e88
04:10
Add comments. check-in: 2d0a56c918 user: mistachkin tags: tkt-8d928c3e88
2015-01-08
18:57
Add 'AppendManifestToken_SQLiteProviderManifest' environment variable to enable better testing and tighter integration. Complete initial tests. check-in: c42db158c3 user: mistachkin tags: tkt-8d928c3e88
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to System.Data.SQLite.Linq/SQLiteProviderManifest.cs.

    63     63   
    64     64       private static XmlReader GetProviderManifest()
    65     65       {
    66     66         return GetXmlResource("System.Data.SQLite.SQLiteProviderServices.ProviderManifest.xml");
    67     67       }
    68     68   
    69     69       /// <summary>
    70         -    /// 
           70  +    /// Determines and returns the effective provider manifest token to use,
           71  +    /// based on the specified provider manifest token and the environment,
           72  +    /// if applicable.
    71     73       /// </summary>
    72     74       /// <param name="manifestToken">
    73         -    /// 
           75  +    /// The original provider manifest token passed to the constructor for this
           76  +    /// class.
    74     77       /// </param>
    75     78       /// <returns>
    76         -    /// 
           79  +    /// The effective provider manifest token.
    77     80       /// </returns>
    78     81       private static string GetProviderManifestToken(
    79     82           string manifestToken
    80     83           )
    81     84       {
    82     85   #if !PLATFORM_COMPACTFRAMEWORK
    83     86           string value = Environment.GetEnvironmentVariable(
................................................................................
    94     97           StringBuilder builder = new StringBuilder(capacity);
    95     98   
    96     99           builder.Append(manifestToken);
    97    100           builder.Append(value);
    98    101   
    99    102           return builder.ToString();
   100    103   #else
          104  +        //
          105  +        // NOTE: The .NET Compact Framework lacks environment variable support.
          106  +        //       Therefore, just return the original provider manifest token
          107  +        //       verbatim in this case.
          108  +        //
   101    109           return manifestToken;
   102    110   #endif
   103    111       }
   104    112   
   105    113       /// <summary>
   106    114       /// Attempts to parse a provider manifest token.  It must contain either a
   107    115       /// legacy string that specifies the <see cref="SQLiteDateFormats" /> value