浏览代码

添加SQLite功能,优化搜索文件

yuzhengyang 8 年之前
父节点
当前提交
793bc0fb76
共有 88 个文件被更改,包括 204857 次插入77 次删除
  1. 41 4
      Fork.Net/Oreo.Plugins/Oreo.FileMan/App.config
  2. 20 0
      Fork.Net/Oreo.Plugins/Oreo.FileMan/DatabaseEngine/Mapping.cs
  3. 42 0
      Fork.Net/Oreo.Plugins/Oreo.FileMan/DatabaseEngine/Muse.cs
  4. 17 0
      Fork.Net/Oreo.Plugins/Oreo.FileMan/Models/Files.cs
  5. 42 1
      Fork.Net/Oreo.Plugins/Oreo.FileMan/Oreo.FileMan.csproj
  6. 15 2
      Fork.Net/Oreo.Plugins/Oreo.FileMan/Partial/FileTypePartial.cs
  7. 11 0
      Fork.Net/Oreo.Plugins/Oreo.FileMan/packages.config
  8. 50 70
      Fork.Net/Y.Utils/IOUtils/FileUtils/FileTool.cs
  9. 二进制
      Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.resources.dll
  10. 1959 0
      Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.xml
  11. 二进制
      Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.resources.dll
  12. 27618 0
      Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.xml
  13. 二进制
      Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.resources.dll
  14. 1959 0
      Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.xml
  15. 二进制
      Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.resources.dll
  16. 27618 0
      Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.xml
  17. 二进制
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/EntityFramework.zh-Hans.6.1.3.nupkg
  18. 二进制
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.resources.dll
  19. 1959 0
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.xml
  20. 二进制
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.resources.dll
  21. 27618 0
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.xml
  22. 二进制
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.resources.dll
  23. 1959 0
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.xml
  24. 二进制
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.resources.dll
  25. 27618 0
      Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.xml
  26. 二进制
      Fork.Net/packages/SQLite.CodeFirst.1.3.1.18/SQLite.CodeFirst.1.3.1.18.nupkg
  27. 二进制
      Fork.Net/packages/SQLite.CodeFirst.1.3.1.18/lib/net40/SQLite.CodeFirst.dll
  28. 二进制
      Fork.Net/packages/SQLite.CodeFirst.1.3.1.18/lib/net45/SQLite.CodeFirst.dll
  29. 二进制
      Fork.Net/packages/System.Data.SQLite.1.0.105.2/System.Data.SQLite.1.0.105.2.nupkg
  30. 二进制
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/System.Data.SQLite.Core.1.0.105.2.nupkg
  31. 二进制
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net20/System.Data.SQLite.dll
  32. 20 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net20/System.Data.SQLite.dll.config
  33. 17173 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net20/System.Data.SQLite.xml
  34. 二进制
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net40/System.Data.SQLite.dll
  35. 20 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net40/System.Data.SQLite.dll.config
  36. 17173 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net40/System.Data.SQLite.xml
  37. 二进制
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net45/System.Data.SQLite.dll
  38. 20 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net45/System.Data.SQLite.dll.config
  39. 17173 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net45/System.Data.SQLite.xml
  40. 二进制
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net451/System.Data.SQLite.dll
  41. 20 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net451/System.Data.SQLite.dll.config
  42. 17173 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net451/System.Data.SQLite.xml
  43. 二进制
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net46/System.Data.SQLite.dll
  44. 20 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net46/System.Data.SQLite.dll.config
  45. 17173 0
      Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net46/System.Data.SQLite.xml
  46. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/System.Data.SQLite.EF6.1.0.105.2.nupkg
  47. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/app.config.install.xdt
  48. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/app.config.transform
  49. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/web.config.install.xdt
  50. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/web.config.transform
  51. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/app.config.install.xdt
  52. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/app.config.transform
  53. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/web.config.install.xdt
  54. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/web.config.transform
  55. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/app.config.install.xdt
  56. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/app.config.transform
  57. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/web.config.install.xdt
  58. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/web.config.transform
  59. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/app.config.install.xdt
  60. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/app.config.transform
  61. 12 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/web.config.install.xdt
  62. 11 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/web.config.transform
  63. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net40/System.Data.SQLite.EF6.dll
  64. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net45/System.Data.SQLite.EF6.dll
  65. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net451/System.Data.SQLite.EF6.dll
  66. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net46/System.Data.SQLite.EF6.dll
  67. 13 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net40/install.ps1
  68. 13 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net45/install.ps1
  69. 13 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net451/install.ps1
  70. 13 0
      Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net46/install.ps1
  71. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.Migrations.1.0.104/System.Data.SQLite.EF6.Migrations.1.0.104.nupkg
  72. 二进制
      Fork.Net/packages/System.Data.SQLite.EF6.Migrations.1.0.104/lib/System.Data.SQLite.EF6.Migrations.dll
  73. 二进制
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/System.Data.SQLite.Linq.1.0.105.2.nupkg
  74. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net20/app.config.transform
  75. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net20/web.config.transform
  76. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net40/app.config.transform
  77. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net40/web.config.transform
  78. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net45/app.config.transform
  79. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net45/web.config.transform
  80. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net451/app.config.transform
  81. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net451/web.config.transform
  82. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net46/app.config.transform
  83. 11 0
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net46/web.config.transform
  84. 二进制
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net20/System.Data.SQLite.Linq.dll
  85. 二进制
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net40/System.Data.SQLite.Linq.dll
  86. 二进制
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net45/System.Data.SQLite.Linq.dll
  87. 二进制
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net451/System.Data.SQLite.Linq.dll
  88. 二进制
      Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net46/System.Data.SQLite.Linq.dll

+ 41 - 4
Fork.Net/Oreo.Plugins/Oreo.FileMan/App.config

@@ -1,6 +1,43 @@
-<?xml version="1.0" encoding="utf-8" ?>
+<?xml version="1.0" encoding="utf-8"?>
 <configuration>
-    <startup> 
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
-    </startup>
+  <configSections>
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
+  </startup>
+  <connectionStrings>
+    <add name="DefaultConnection" connectionString="data source=|DataDirectory|\db.sqlite" providerName="System.Data.SQLite" />
+  </connectionStrings>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+      <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
+      <provider invariantName="System.Data.SQLite" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
+    </providers>
+  </entityFramework>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    <remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
+  </system.data>
+  <runtime>
+    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+      <dependentAssembly>
+        <assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
+        <bindingRedirect oldVersion="0.0.0.0-1.0.105.2" newVersion="1.0.105.2" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="System.Data.SQLite.EF6" publicKeyToken="db937bc2d44ff139" culture="neutral" />
+        <bindingRedirect oldVersion="0.0.0.0-1.0.105.2" newVersion="1.0.105.2" />
+      </dependentAssembly>
+    </assemblyBinding>
+  </runtime>
 </configuration>

+ 20 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/DatabaseEngine/Mapping.cs

@@ -0,0 +1,20 @@
+using Oreo.FileMan.Models;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Data.Entity.Infrastructure.Annotations;
+using System.Data.Entity.ModelConfiguration;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Oreo.FileMan.DatabaseEngine
+{
+    public class FilesMap : EntityTypeConfiguration<Files>
+    {
+        public FilesMap()
+        {
+            this.Property(o => o.Id).HasColumnAnnotation("Index", new IndexAnnotation(new IndexAttribute() { IsUnique = true }));
+        }
+    }
+}

+ 42 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/DatabaseEngine/Muse.cs

@@ -0,0 +1,42 @@
+using Oreo.FileMan.Models;
+using SQLite.CodeFirst;
+using System;
+using System.Collections.Generic;
+using System.Data.Entity;
+using System.Data.Entity.ModelConfiguration.Conventions;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Oreo.FileMan.DatabaseEngine
+{
+    public class Muse : DbContext
+    {
+        public Muse()
+            : base("DefaultConnection")
+        {
+        }
+
+        protected override void OnModelCreating(DbModelBuilder modelBuilder)
+        {
+            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
+            modelBuilder.Configurations.AddFromAssembly(typeof(Muse).Assembly);
+
+            Database.SetInitializer(new MyDbInitializer(Database.Connection.ConnectionString, modelBuilder));
+            //var sqliteConnectionInitializer = new SqliteCreateDatabaseIfNotExists<Muse>(modelBuilder);
+            //Database.SetInitializer(sqliteConnectionInitializer);
+        }
+    }
+
+    public class MyDbInitializer : SqliteDropCreateDatabaseAlways<Muse>
+    {
+        public MyDbInitializer(string connectionString, DbModelBuilder modelBuilder)
+            : base(modelBuilder) { }
+
+        protected override void Seed(Muse context)
+        {
+            //context.Set<Files>().Add(new Files { FileName = "123" });
+            base.Seed(context);
+        }
+    }
+}

+ 17 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/Models/Files.cs

@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Oreo.FileMan.Models
+{
+    public class Files
+    {
+        public int Id { get; set; }
+        public string FullPath { get; set; }
+        public string FileName { get; set; }
+        public string ExtName { get; set; }
+        public long Size { get; set; }
+    }
+}

+ 42 - 1
Fork.Net/Oreo.Plugins/Oreo.FileMan/Oreo.FileMan.csproj

@@ -12,6 +12,8 @@
     <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <NuGetPackageImportStamp>
+    </NuGetPackageImportStamp>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <PlatformTarget>AnyCPU</PlatformTarget>
@@ -37,9 +39,38 @@
     <ApplicationIcon>Images\Icon\Icon.ico</ApplicationIcon>
   </PropertyGroup>
   <ItemGroup>
+    <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
+    <Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
+    <Reference Include="SQLite.CodeFirst, Version=1.3.1.18, Culture=neutral, PublicKeyToken=eb96ba0a78d831a7, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\SQLite.CodeFirst.1.3.1.18\lib\net45\SQLite.CodeFirst.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
     <Reference Include="System" />
+    <Reference Include="System.ComponentModel.DataAnnotations" />
     <Reference Include="System.Configuration" />
     <Reference Include="System.Core" />
+    <Reference Include="System.Data.SQLite, Version=1.0.105.2, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\System.Data.SQLite.Core.1.0.105.2\lib\net46\System.Data.SQLite.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
+    <Reference Include="System.Data.SQLite.EF6, Version=1.0.105.2, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\System.Data.SQLite.EF6.1.0.105.2\lib\net46\System.Data.SQLite.EF6.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
+    <Reference Include="System.Data.SQLite.EF6.Migrations, Version=1.0.104.0, Culture=neutral, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\System.Data.SQLite.EF6.Migrations.1.0.104\lib\System.Data.SQLite.EF6.Migrations.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
+    <Reference Include="System.Data.SQLite.Linq, Version=1.0.105.2, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
+      <HintPath>..\..\packages\System.Data.SQLite.Linq.1.0.105.2\lib\net46\System.Data.SQLite.Linq.dll</HintPath>
+      <Private>True</Private>
+    </Reference>
     <Reference Include="System.Xml.Linq" />
     <Reference Include="System.Data.DataSetExtensions" />
     <Reference Include="Microsoft.CSharp" />
@@ -51,6 +82,9 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="DatabaseEngine\Mapping.cs" />
+    <Compile Include="DatabaseEngine\Muse.cs" />
+    <Compile Include="Models\Files.cs" />
     <Compile Include="Partial\FileDecryptPartial.cs">
       <SubType>UserControl</SubType>
     </Compile>
@@ -99,6 +133,7 @@
     <EmbeddedResource Include="Views\MainForm.resx">
       <DependentUpon>MainForm.cs</DependentUpon>
     </EmbeddedResource>
+    <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@@ -114,7 +149,6 @@
   </ItemGroup>
   <ItemGroup>
     <Folder Include="Commons\" />
-    <Folder Include="Models\" />
     <Folder Include="Services\" />
   </ItemGroup>
   <ItemGroup>
@@ -149,6 +183,13 @@
     <Content Include="Images\WaitingGif\Wait-Hor.gif" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <Import Project="..\..\packages\System.Data.SQLite.Core.1.0.105.2\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\..\packages\System.Data.SQLite.Core.1.0.105.2\build\net46\System.Data.SQLite.Core.targets')" />
+  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
+    <PropertyGroup>
+      <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
+    </PropertyGroup>
+    <Error Condition="!Exists('..\..\packages\System.Data.SQLite.Core.1.0.105.2\build\net46\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\System.Data.SQLite.Core.1.0.105.2\build\net46\System.Data.SQLite.Core.targets'))" />
+  </Target>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">

+ 15 - 2
Fork.Net/Oreo.Plugins/Oreo.FileMan/Partial/FileTypePartial.cs

@@ -12,6 +12,8 @@ using Y.Utils.DataUtils.Collections;
 using Y.Utils.IOUtils.FileUtils;
 using System.Threading;
 using Y.Utils.IOUtils.PathUtils;
+using Oreo.FileMan.Models;
+using Oreo.FileMan.DatabaseEngine;
 
 namespace Oreo.FileMan.Partial
 {
@@ -79,8 +81,19 @@ namespace Oreo.FileMan.Partial
                 //    {
                 //        if (item.IsReady)
                 //        {
-                List<string> files = FileTool.GetAllFile2("J:\\", type);
-                if (ListTool.HasElements(files)) result += files.Count();
+                List<string> files = FileTool.GetAllFile("D:\\", type);
+                if (ListTool.HasElements(files))
+                {
+                    result += files.Count();
+                    using (var db = new Muse())
+                    {
+                        files.ForEach(x =>
+                        {
+                            var a = db.Set<Files>().Add(new Files() { FullPath = x, FileName = Path.GetFileName(x), ExtName = Path.GetExtension(x) });
+                        });
+                        int count = db.SaveChanges();
+                    }
+                }
                 //        }
                 //    }
                 //}

+ 11 - 0
Fork.Net/Oreo.Plugins/Oreo.FileMan/packages.config

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="EntityFramework" version="6.1.3" targetFramework="net461" />
+  <package id="EntityFramework.zh-Hans" version="6.1.3" targetFramework="net461" />
+  <package id="SQLite.CodeFirst" version="1.3.1.18" targetFramework="net461" />
+  <package id="System.Data.SQLite" version="1.0.105.2" targetFramework="net461" />
+  <package id="System.Data.SQLite.Core" version="1.0.105.2" targetFramework="net461" />
+  <package id="System.Data.SQLite.EF6" version="1.0.105.2" targetFramework="net461" />
+  <package id="System.Data.SQLite.EF6.Migrations" version="1.0.104" targetFramework="net461" />
+  <package id="System.Data.SQLite.Linq" version="1.0.105.2" targetFramework="net461" />
+</packages>

+ 50 - 70
Fork.Net/Y.Utils/IOUtils/FileUtils/FileTool.cs

@@ -38,42 +38,22 @@ namespace Y.Utils.IOUtils.FileUtils
                 catch (Exception e) { }
             return null;
         }
-        /// <summary>
-        /// 获取文件(向下钻取所有目录)
-        /// </summary>
-        /// <param name="path">路径</param>
-        /// <param name="pattern">通配符</param>
-        /// <returns></returns>
-        public static List<string> GetAllFile(string path, string pattern = "*")
-        {
-            List<string> result = null;
-            try
-            {
-                result = Directory.EnumerateFiles(path, pattern, SearchOption.TopDirectoryOnly).ToList();
-            }
-            catch (Exception e) { }
-            return result;
-        }
-        /// <summary>
-        /// 获取文件(向下钻取所有目录)
-        /// </summary>
-        /// <param name="path">路径</param>
-        /// <param name="pattern">通配符(支持多个通配符)</param>
-        /// <returns></returns>
-        [Obsolete]
-        public static List<string> GetAllFile(string path, string[] patterns)
-        {
-            List<string> result = new List<string>();
-            if (!ListTool.IsNullOrEmpty(patterns))
-            {
-                foreach (var p in patterns)
-                {
-                    List<string> temp = GetAllFile(path, p);
-                    if (!ListTool.IsNullOrEmpty(temp)) result.AddRange(temp);
-                }
-            }
-            return result;
-        }
+        ///// <summary>
+        ///// 获取文件(向下钻取所有目录)
+        ///// </summary>
+        ///// <param name="path">路径</param>
+        ///// <param name="pattern">通配符</param>
+        ///// <returns></returns>
+        //public static List<string> GetAllFile(string path, string pattern = "*")
+        //{
+        //    List<string> result = null;
+        //    try
+        //    {
+        //        result = Directory.EnumerateFiles(path, pattern, SearchOption.TopDirectoryOnly).ToList();
+        //    }
+        //    catch (Exception e) { }
+        //    return result;
+        //}
         /// <summary>
         /// 获取目录下的所有文件
         /// 防止遇到($文件夹报错无法获取目录的错误)
@@ -81,7 +61,7 @@ namespace Y.Utils.IOUtils.FileUtils
         /// <param name="path"></param>
         /// <param name="patterns"></param>
         /// <returns></returns>
-        public static List<string> GetAllFile2(string path, string[] patterns)
+        public static List<string> GetAllFile(string path, string[] patterns = null)
         {
             List<string> allpath = DirTool.GetAllPath(path);
             allpath.Add(path);
@@ -104,50 +84,50 @@ namespace Y.Utils.IOUtils.FileUtils
                     {
                         foreach (var pattern in patterns)
                         {
-                            List<string> temp = GetAllFile(path, pattern);
+                            List<string> temp = GetFile(path, pattern);
                             if (!ListTool.IsNullOrEmpty(temp)) result.AddRange(temp);
                         }
                     }
                     else
                     {
-                        List<string> temp = GetAllFile(path);
+                        List<string> temp = GetFile(path);
                         if (!ListTool.IsNullOrEmpty(temp)) result.AddRange(temp);
                     }
                 }
             }
             return result;
         }
-        /// <summary>
-        /// 获取文件(所有目录)(严格模式:从第一个.开始截取后缀)
-        /// </summary>
-        /// <param name="paths">路径(支持多个路径)</param>
-        /// <param name="patterns">通配符(支持多个通配符)</param>
-        /// <returns></returns>
-        public static List<string> GetAllFileByExt(string[] paths, string[] patterns)
-        {
-            List<string> result = new List<string>();
-            if (!ListTool.IsNullOrEmpty(paths))
-            {
-                foreach (var path in paths)
-                {
-                    List<string> temp = GetAllFile(path);
-                    if (!ListTool.IsNullOrEmpty(temp)) result.AddRange(temp);
-                }
-            }
-            if (!ListTool.IsNullOrEmpty(patterns) && !ListTool.IsNullOrEmpty(result))
-            {
-                for (int i = result.Count() - 1; i >= 0; i--)
-                {
-                    string ext = System.IO.Path.GetFileName(result[i]);
-                    if (ext.IndexOf('.') >= 0)
-                    {
-                        ext = ext.Substring(ext.IndexOf('.'));
-                    }
-                    if (!patterns.Contains(ext)) result.RemoveAt(i);
-                }
-            }
-            return result;
-        }
+        ///// <summary>
+        ///// 获取文件(所有目录)(严格模式:从第一个.开始截取后缀)
+        ///// </summary>
+        ///// <param name="paths">路径(支持多个路径)</param>
+        ///// <param name="patterns">通配符(支持多个通配符)</param>
+        ///// <returns></returns>
+        //public static List<string> GetAllFileByExt(string[] paths, string[] patterns)
+        //{
+        //    List<string> result = new List<string>();
+        //    if (!ListTool.IsNullOrEmpty(paths))
+        //    {
+        //        foreach (var path in paths)
+        //        {
+        //            List<string> temp = GetAllFile(path);
+        //            if (!ListTool.IsNullOrEmpty(temp)) result.AddRange(temp);
+        //        }
+        //    }
+        //    if (!ListTool.IsNullOrEmpty(patterns) && !ListTool.IsNullOrEmpty(result))
+        //    {
+        //        for (int i = result.Count() - 1; i >= 0; i--)
+        //        {
+        //            string ext = System.IO.Path.GetFileName(result[i]);
+        //            if (ext.IndexOf('.') >= 0)
+        //            {
+        //                ext = ext.Substring(ext.IndexOf('.'));
+        //            }
+        //            if (!patterns.Contains(ext)) result.RemoveAt(i);
+        //        }
+        //    }
+        //    return result;
+        //}
 
 
         /// <summary>

二进制
Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.resources.dll


文件差异内容过多而无法显示
+ 1959 - 0
Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.xml


二进制
Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.resources.dll


文件差异内容过多而无法显示
+ 27618 - 0
Fork.Net/packages/EntityFramework.6.1.3/lib/net40/zh-Hans/EntityFramework.xml


二进制
Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.resources.dll


文件差异内容过多而无法显示
+ 1959 - 0
Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.xml


二进制
Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.resources.dll


文件差异内容过多而无法显示
+ 27618 - 0
Fork.Net/packages/EntityFramework.6.1.3/lib/net45/zh-Hans/EntityFramework.xml


二进制
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/EntityFramework.zh-Hans.6.1.3.nupkg


二进制
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.resources.dll


文件差异内容过多而无法显示
+ 1959 - 0
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.SqlServer.xml


二进制
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.resources.dll


文件差异内容过多而无法显示
+ 27618 - 0
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net40/zh-Hans/EntityFramework.xml


二进制
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.resources.dll


文件差异内容过多而无法显示
+ 1959 - 0
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.SqlServer.xml


二进制
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.resources.dll


文件差异内容过多而无法显示
+ 27618 - 0
Fork.Net/packages/EntityFramework.zh-Hans.6.1.3/lib/net45/zh-Hans/EntityFramework.xml


二进制
Fork.Net/packages/SQLite.CodeFirst.1.3.1.18/SQLite.CodeFirst.1.3.1.18.nupkg


二进制
Fork.Net/packages/SQLite.CodeFirst.1.3.1.18/lib/net40/SQLite.CodeFirst.dll


二进制
Fork.Net/packages/SQLite.CodeFirst.1.3.1.18/lib/net45/SQLite.CodeFirst.dll


二进制
Fork.Net/packages/System.Data.SQLite.1.0.105.2/System.Data.SQLite.1.0.105.2.nupkg


二进制
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/System.Data.SQLite.Core.1.0.105.2.nupkg


二进制
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net20/System.Data.SQLite.dll


+ 20 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net20/System.Data.SQLite.dll.config

@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+ *
+ * System.Data.SQLite.dll.config -
+ *
+ * WARNING: This XML configuration file is intended for use within the NuGet
+ *          package directories only.  Please do not copy this file to any of
+ *          the build output directories because it could interfere with the
+ *          native library pre-loading feature.
+ *
+ * Written by Joe Mistachkin.
+ * Released to the public domain, use at your own risk!
+ *
+-->
+<configuration>
+  <appSettings>
+    <add key="PreLoadSQLite_BaseDirectory"
+         value="%PreLoadSQLite_AssemblyDirectory%\..\..\build\%PreLoadSQLite_TargetFramework%" />
+  </appSettings>
+</configuration>

文件差异内容过多而无法显示
+ 17173 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net20/System.Data.SQLite.xml


二进制
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net40/System.Data.SQLite.dll


+ 20 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net40/System.Data.SQLite.dll.config

@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+ *
+ * System.Data.SQLite.dll.config -
+ *
+ * WARNING: This XML configuration file is intended for use within the NuGet
+ *          package directories only.  Please do not copy this file to any of
+ *          the build output directories because it could interfere with the
+ *          native library pre-loading feature.
+ *
+ * Written by Joe Mistachkin.
+ * Released to the public domain, use at your own risk!
+ *
+-->
+<configuration>
+  <appSettings>
+    <add key="PreLoadSQLite_BaseDirectory"
+         value="%PreLoadSQLite_AssemblyDirectory%\..\..\build\%PreLoadSQLite_TargetFramework%" />
+  </appSettings>
+</configuration>

文件差异内容过多而无法显示
+ 17173 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net40/System.Data.SQLite.xml


二进制
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net45/System.Data.SQLite.dll


+ 20 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net45/System.Data.SQLite.dll.config

@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+ *
+ * System.Data.SQLite.dll.config -
+ *
+ * WARNING: This XML configuration file is intended for use within the NuGet
+ *          package directories only.  Please do not copy this file to any of
+ *          the build output directories because it could interfere with the
+ *          native library pre-loading feature.
+ *
+ * Written by Joe Mistachkin.
+ * Released to the public domain, use at your own risk!
+ *
+-->
+<configuration>
+  <appSettings>
+    <add key="PreLoadSQLite_BaseDirectory"
+         value="%PreLoadSQLite_AssemblyDirectory%\..\..\build\%PreLoadSQLite_TargetFramework%" />
+  </appSettings>
+</configuration>

文件差异内容过多而无法显示
+ 17173 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net45/System.Data.SQLite.xml


二进制
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net451/System.Data.SQLite.dll


+ 20 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net451/System.Data.SQLite.dll.config

@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+ *
+ * System.Data.SQLite.dll.config -
+ *
+ * WARNING: This XML configuration file is intended for use within the NuGet
+ *          package directories only.  Please do not copy this file to any of
+ *          the build output directories because it could interfere with the
+ *          native library pre-loading feature.
+ *
+ * Written by Joe Mistachkin.
+ * Released to the public domain, use at your own risk!
+ *
+-->
+<configuration>
+  <appSettings>
+    <add key="PreLoadSQLite_BaseDirectory"
+         value="%PreLoadSQLite_AssemblyDirectory%\..\..\build\%PreLoadSQLite_TargetFramework%" />
+  </appSettings>
+</configuration>

文件差异内容过多而无法显示
+ 17173 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net451/System.Data.SQLite.xml


二进制
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net46/System.Data.SQLite.dll


+ 20 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net46/System.Data.SQLite.dll.config

@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!--
+ *
+ * System.Data.SQLite.dll.config -
+ *
+ * WARNING: This XML configuration file is intended for use within the NuGet
+ *          package directories only.  Please do not copy this file to any of
+ *          the build output directories because it could interfere with the
+ *          native library pre-loading feature.
+ *
+ * Written by Joe Mistachkin.
+ * Released to the public domain, use at your own risk!
+ *
+-->
+<configuration>
+  <appSettings>
+    <add key="PreLoadSQLite_BaseDirectory"
+         value="%PreLoadSQLite_AssemblyDirectory%\..\..\build\%PreLoadSQLite_TargetFramework%" />
+  </appSettings>
+</configuration>

文件差异内容过多而无法显示
+ 17173 - 0
Fork.Net/packages/System.Data.SQLite.Core.1.0.105.2/lib/net46/System.Data.SQLite.xml


二进制
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/System.Data.SQLite.EF6.1.0.105.2.nupkg


+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/app.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/web.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net40/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/app.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/web.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net45/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/app.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/web.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net451/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/app.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 12 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/web.config.install.xdt

@@ -0,0 +1,12 @@
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <system.data>
+    <DbProviderFactories>
+      <remove xdt:Transform="RemoveAll"
+              xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                     @invariant='System.Data.SQLite.Linq')" />
+      <add xdt:Transform="RemoveAll"
+           xdt:Locator="Condition(@invariant='System.Data.SQLite' or
+                                  @invariant='System.Data.SQLite.Linq')" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/content/net46/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite.EF6" />
+      <add name="SQLite Data Provider (Entity Framework 6)"
+           invariant="System.Data.SQLite.EF6"
+           description=".NET Framework Data Provider for SQLite (Entity Framework 6)"
+           type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

二进制
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net40/System.Data.SQLite.EF6.dll


二进制
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net45/System.Data.SQLite.EF6.dll


二进制
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net451/System.Data.SQLite.EF6.dll


二进制
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/lib/net46/System.Data.SQLite.EF6.dll


+ 13 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net40/install.ps1

@@ -0,0 +1,13 @@
+###############################################################################
+#
+# provider.ps1 --
+#
+# Written by Joe Mistachkin.
+# Released to the public domain, use at your own risk!
+#
+###############################################################################
+
+param($installPath, $toolsPath, $package, $project)
+
+Add-EFProvider $project "System.Data.SQLite.EF6" `
+    "System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"

+ 13 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net45/install.ps1

@@ -0,0 +1,13 @@
+###############################################################################
+#
+# provider.ps1 --
+#
+# Written by Joe Mistachkin.
+# Released to the public domain, use at your own risk!
+#
+###############################################################################
+
+param($installPath, $toolsPath, $package, $project)
+
+Add-EFProvider $project "System.Data.SQLite.EF6" `
+    "System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"

+ 13 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net451/install.ps1

@@ -0,0 +1,13 @@
+###############################################################################
+#
+# provider.ps1 --
+#
+# Written by Joe Mistachkin.
+# Released to the public domain, use at your own risk!
+#
+###############################################################################
+
+param($installPath, $toolsPath, $package, $project)
+
+Add-EFProvider $project "System.Data.SQLite.EF6" `
+    "System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"

+ 13 - 0
Fork.Net/packages/System.Data.SQLite.EF6.1.0.105.2/tools/net46/install.ps1

@@ -0,0 +1,13 @@
+###############################################################################
+#
+# provider.ps1 --
+#
+# Written by Joe Mistachkin.
+# Released to the public domain, use at your own risk!
+#
+###############################################################################
+
+param($installPath, $toolsPath, $package, $project)
+
+Add-EFProvider $project "System.Data.SQLite.EF6" `
+    "System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"

二进制
Fork.Net/packages/System.Data.SQLite.EF6.Migrations.1.0.104/System.Data.SQLite.EF6.Migrations.1.0.104.nupkg


二进制
Fork.Net/packages/System.Data.SQLite.EF6.Migrations.1.0.104/lib/System.Data.SQLite.EF6.Migrations.dll


二进制
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/System.Data.SQLite.Linq.1.0.105.2.nupkg


+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net20/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net20/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net40/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net40/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net45/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net45/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net451/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net451/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net46/app.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

+ 11 - 0
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/content/net46/web.config.transform

@@ -0,0 +1,11 @@
+<configuration>
+  <system.data>
+    <DbProviderFactories>
+      <remove invariant="System.Data.SQLite" />
+      <add name="SQLite Data Provider"
+           invariant="System.Data.SQLite"
+           description=".NET Framework Data Provider for SQLite"
+           type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
+    </DbProviderFactories>
+  </system.data>
+</configuration>

二进制
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net20/System.Data.SQLite.Linq.dll


二进制
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net40/System.Data.SQLite.Linq.dll


二进制
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net45/System.Data.SQLite.Linq.dll


二进制
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net451/System.Data.SQLite.Linq.dll


二进制
Fork.Net/packages/System.Data.SQLite.Linq.1.0.105.2/lib/net46/System.Data.SQLite.Linq.dll