Révision | b84793e6503bca9fa490ba760168020aad228a6c (tree) |
---|---|
l'heure | 2022-05-31 13:20:59 |
Auteur | yoshy <yoshy.org.bitbucket@gz.j...> |
Commiter | yoshy |
[DEL] DB具象クライアントへの依存をフレームワークからアプリ側に移動
@@ -57,9 +57,7 @@ | ||
57 | 57 | <Compile Include="OuterEdge\Repository\Db\Tx\IDbConnectionWrapper.cs" /> |
58 | 58 | <Compile Include="OuterEdge\Repository\Db\Tx\IDbTransactionWrapper.cs" /> |
59 | 59 | <Compile Include="OuterEdge\Repository\Db\Tx\ITransactionManager.cs" /> |
60 | - <Compile Include="OuterEdge\Repository\Db\Tx\MysqlConnectionFactory.cs" /> | |
61 | - <Compile Include="OuterEdge\Repository\Db\Tx\NpgsqlConnectionFactory.cs" /> | |
62 | - <Compile Include="OuterEdge\Repository\Db\Tx\SQLiteConnectionFactory.cs" /> | |
60 | + <Compile Include="OuterEdge\Repository\Db\Tx\SimpleConnectionFactory.cs" /> | |
63 | 61 | <Compile Include="OuterEdge\Repository\Db\Tx\TransactionManager.cs" /> |
64 | 62 | <Compile Include="Properties\AssemblyInfo.cs" /> |
65 | 63 | </ItemGroup> |
@@ -70,18 +68,9 @@ | ||
70 | 68 | </ProjectReference> |
71 | 69 | </ItemGroup> |
72 | 70 | <ItemGroup> |
73 | - <PackageReference Include="MySql.Data"> | |
74 | - <Version>8.0.29</Version> | |
75 | - </PackageReference> | |
76 | 71 | <PackageReference Include="NLog"> |
77 | 72 | <Version>5.0.0</Version> |
78 | 73 | </PackageReference> |
79 | - <PackageReference Include="Npgsql"> | |
80 | - <Version>6.0.4</Version> | |
81 | - </PackageReference> | |
82 | - <PackageReference Include="System.Data.SQLite"> | |
83 | - <Version>1.0.115.5</Version> | |
84 | - </PackageReference> | |
85 | 74 | </ItemGroup> |
86 | 75 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
87 | 76 | </Project> |
\ No newline at end of file |
@@ -1,11 +0,0 @@ | ||
1 | -using MySql.Data.MySqlClient; | |
2 | - | |
3 | -namespace CleanAuLait48.OuterEdge.Repository.Db.Tx | |
4 | -{ | |
5 | - public class MysqlConnectionFactory : AbstractConnectionFactory | |
6 | - { | |
7 | - public MysqlConnectionFactory(string connStr) : base(MySqlClientFactory.Instance, connStr) | |
8 | - { | |
9 | - } | |
10 | - } | |
11 | -} |
@@ -1,11 +0,0 @@ | ||
1 | -using Npgsql; | |
2 | - | |
3 | -namespace CleanAuLait48.OuterEdge.Repository.Db.Tx | |
4 | -{ | |
5 | - public class NpgsqlConnectionFactory : AbstractConnectionFactory | |
6 | - { | |
7 | - public NpgsqlConnectionFactory(string connStr) : base(NpgsqlFactory.Instance, connStr) | |
8 | - { | |
9 | - } | |
10 | - } | |
11 | -} |
@@ -1,11 +0,0 @@ | ||
1 | -using System.Data.SQLite; | |
2 | - | |
3 | -namespace CleanAuLait48.OuterEdge.Repository.Db.Tx | |
4 | -{ | |
5 | - public class SQLiteConnectionFactory : AbstractConnectionFactory | |
6 | - { | |
7 | - public SQLiteConnectionFactory(string connStr) : base(SQLiteFactory.Instance, connStr) | |
8 | - { | |
9 | - } | |
10 | - } | |
11 | -} |
@@ -0,0 +1,11 @@ | ||
1 | +using System.Data.Common; | |
2 | + | |
3 | +namespace CleanAuLait48.OuterEdge.Repository.Db.Tx | |
4 | +{ | |
5 | + public class SimpleConnectionFactory : AbstractConnectionFactory | |
6 | + { | |
7 | + public SimpleConnectionFactory(DbProviderFactory factory, string connStr) : base(factory, connStr) | |
8 | + { | |
9 | + } | |
10 | + } | |
11 | +} |