From 8231f1641d0d1a3a595c4013020b97c31b2b8797 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期六, 06 一月 2024 11:28:07 +0800 Subject: [PATCH] 添加pg库引用 --- JiangSu/JiangSu.csproj | 6 ++++++ JiangSu/Web.config | 8 +++----- JiangSu/Resources/log.txt | 0 JiangSu/DLL/Npgsql.dll | 0 JiangSu/DLL/Mono.Security.dll | 0 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/JiangSu/DLL/Mono.Security.dll b/JiangSu/DLL/Mono.Security.dll new file mode 100644 index 0000000..62ae339 --- /dev/null +++ b/JiangSu/DLL/Mono.Security.dll Binary files differ diff --git a/JiangSu/DLL/Npgsql.dll b/JiangSu/DLL/Npgsql.dll new file mode 100644 index 0000000..53d9860 --- /dev/null +++ b/JiangSu/DLL/Npgsql.dll Binary files differ diff --git a/JiangSu/JiangSu.csproj b/JiangSu/JiangSu.csproj index 887672e..2720e5c 100644 --- a/JiangSu/JiangSu.csproj +++ b/JiangSu/JiangSu.csproj @@ -44,6 +44,10 @@ <HintPath>DLL\log4net4.dll</HintPath> </Reference> <Reference Include="Microsoft.CSharp" /> + <Reference Include="Npgsql, Version=2.2.3.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>DLL\Npgsql.dll</HintPath> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Data.Entity" /> @@ -152,6 +156,8 @@ <ItemGroup> <Content Include="App_Data\db.sql" /> <Content Include="DLL\log4net4.dll" /> + <Content Include="DLL\Mono.Security.dll" /> + <Content Include="DLL\Npgsql.dll" /> <Content Include="DLL\SQLite.Interop.dll" /> <Content Include="DLL\System.Data.SQLite.dll" /> <Content Include="favicon.ico" /> diff --git a/JiangSu/Resources/log.txt b/JiangSu/Resources/log.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/JiangSu/Resources/log.txt diff --git a/JiangSu/Web.config b/JiangSu/Web.config index fc6e8a3..44255b2 100644 --- a/JiangSu/Web.config +++ b/JiangSu/Web.config @@ -1,11 +1,9 @@ 锘�<?xml version="1.0" encoding="utf-8"?> -<!-- - 鏈夊叧濡備綍閰嶇疆 ASP.NET 搴旂敤绋嬪簭鐨勮缁嗕俊鎭紝璇疯闂� - http://go.microsoft.com/fwlink/?LinkId=169433 - --> <configuration> + <appSettings> + <add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=etown;User Id=postgres;Password=postgres;"/> + </appSettings> <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=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections> <connectionStrings> -- Gitblit v1.9.3