System.Data.SQLite

Check-in [abb205e18a]
Login

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

Overview
Comment:Fix compilation issues with the .NET Compact Framework.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | preRelease
Files: files | file ages | folders
SHA1: abb205e18a2a922cd2af5eb178622356926b9953
User & Date: mistachkin 2019-10-27 17:37:03.268
Context
2019-10-27
17:37
Fix typos in the GetLimitOpsNames method. check-in: d8c529a1ab user: mistachkin tags: preRelease
17:37
Fix compilation issues with the .NET Compact Framework. check-in: abb205e18a user: mistachkin tags: preRelease
17:36
Remove extra build steps for building the .NET Standard 2.x binaries as they are included in the primary build process. check-in: 4e9a013cb0 user: mistachkin tags: preRelease
Changes
Unified Diff Ignore Whitespace Patch
Changes to System.Data.SQLite/UnsafeNativeMethods.cs.
1515
1516
1517
1518
1519
1520
1521

1522
1523
1524
1525
1526
1527

1528
1529
1530
1531
1532
1533
1534
      /// <summary>
      /// This lock is used to protect the static _SQLiteNativeModuleFileName,
      /// _SQLiteNativeModuleHandle, and processorArchitecturePlatforms fields.
      /// </summary>
      private static readonly object staticSyncRoot = new object();

      /////////////////////////////////////////////////////////////////////////

      /// <summary>
      /// This dictionary stores the mappings between target framework names
      /// and their associated (NuGet) abbreviations.  These mappings are only
      /// used by the <see cref="AbbreviateTargetFramework" /> method.
      /// </summary>
      private static Dictionary<string, string> targetFrameworkAbbreviations;


      /////////////////////////////////////////////////////////////////////////
      /// <summary>
      /// This dictionary stores the mappings between processor architecture
      /// names and platform names.  These mappings are now used for two
      /// purposes.  First, they are used to determine if the assembly code
      /// base should be used instead of the location, based upon whether one







>






>







1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
      /// <summary>
      /// This lock is used to protect the static _SQLiteNativeModuleFileName,
      /// _SQLiteNativeModuleHandle, and processorArchitecturePlatforms fields.
      /// </summary>
      private static readonly object staticSyncRoot = new object();

      /////////////////////////////////////////////////////////////////////////
#if !PLATFORM_COMPACTFRAMEWORK
      /// <summary>
      /// This dictionary stores the mappings between target framework names
      /// and their associated (NuGet) abbreviations.  These mappings are only
      /// used by the <see cref="AbbreviateTargetFramework" /> method.
      /// </summary>
      private static Dictionary<string, string> targetFrameworkAbbreviations;
#endif

      /////////////////////////////////////////////////////////////////////////
      /// <summary>
      /// This dictionary stores the mappings between processor architecture
      /// names and platform names.  These mappings are now used for two
      /// purposes.  First, they are used to determine if the assembly code
      /// base should be used instead of the location, based upon whether one
1619
1620
1621
1622
1623
1624
1625

1626
1627
1628
1629
1630
1631
1632
          if (GetSettingValue("No_PreLoadSQLite", null) != null)
              return;
#endif
#endif

          lock (staticSyncRoot)
          {

              //
              // TODO: Make sure to keep these lists updated when the
              //       target framework names (or their abbreviations)
              //       -OR- the processor architecture names (or their
              //       platform names) change.
              //
              if (targetFrameworkAbbreviations == null)







>







1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
          if (GetSettingValue("No_PreLoadSQLite", null) != null)
              return;
#endif
#endif

          lock (staticSyncRoot)
          {
#if !PLATFORM_COMPACTFRAMEWORK
              //
              // TODO: Make sure to keep these lists updated when the
              //       target framework names (or their abbreviations)
              //       -OR- the processor architecture names (or their
              //       platform names) change.
              //
              if (targetFrameworkAbbreviations == null)
1676
1677
1678
1679
1680
1681
1682

1683
1684
1685
1686
1687
1688
1689

                  targetFrameworkAbbreviations.Add(
                      ".NETStandard,Version=v2.0", "netstandard2.0");

                  targetFrameworkAbbreviations.Add(
                      ".NETStandard,Version=v2.1", "netstandard2.1");
              }


              if (processorArchitecturePlatforms == null)
              {
                  //
                  // NOTE: Create the map of processor architecture names
                  //       to platform names using a case-insensitive string
                  //       comparer.







>







1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693

                  targetFrameworkAbbreviations.Add(
                      ".NETStandard,Version=v2.0", "netstandard2.0");

                  targetFrameworkAbbreviations.Add(
                      ".NETStandard,Version=v2.1", "netstandard2.1");
              }
#endif

              if (processorArchitecturePlatforms == null)
              {
                  //
                  // NOTE: Create the map of processor architecture names
                  //       to platform names using a case-insensitive string
                  //       comparer.