Skip to content

Commit 4d227b8

Browse files
author
Dmitry Sikorsky
committed
Fixed ExtCore#101
1 parent 9e472a0 commit 4d227b8

33 files changed

Lines changed: 466 additions & 22 deletions

File tree

ExtCore.sln

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.3
4+
VisualStudioVersion = 15.0.27130.2010
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0D7AEFA3-ABB0-4AF1-A4C1-F8E05C241753}"
77
EndProject
@@ -39,6 +39,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Data.EntityFramework", "Dat
3939
EndProject
4040
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtCore.Data.EntityFramework.MySql", "src\ExtCore.Data.EntityFramework.MySql\ExtCore.Data.EntityFramework.MySql.csproj", "{79A8C5FE-94FA-4D60-86C7-016EBF0386B4}"
4141
EndProject
42+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtCore.Data.Dapper", "src\ExtCore.Data.Dapper\ExtCore.Data.Dapper.csproj", "{976AD81D-4F7D-4A0C-9A2F-F665566EA5A9}"
43+
EndProject
44+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtCore.Data.Dapper.MySql", "src\ExtCore.Data.Dapper.MySql\ExtCore.Data.Dapper.MySql.csproj", "{F27A3AE9-718C-4539-B541-4F37D16E4463}"
45+
EndProject
46+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtCore.Data.Dapper.PostgreSql", "src\ExtCore.Data.Dapper.PostgreSql\ExtCore.Data.Dapper.PostgreSql.csproj", "{7B7A5A6C-DB45-4056-B5C7-4286D16220DE}"
47+
EndProject
48+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtCore.Data.Dapper.SqlServer", "src\ExtCore.Data.Dapper.SqlServer\ExtCore.Data.Dapper.SqlServer.csproj", "{E588921B-5E74-45E8-841B-2654D2416D9F}"
49+
EndProject
50+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtCore.Data.Dapper.Sqlite", "src\ExtCore.Data.Dapper.Sqlite\ExtCore.Data.Dapper.Sqlite.csproj", "{693AB050-3305-471C-90C3-816BD694A930}"
51+
EndProject
52+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Data.Dapper", "Data.Dapper", "{8C720480-750C-44C1-945B-961599088853}"
53+
EndProject
4254
Global
4355
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4456
Debug|Any CPU = Debug|Any CPU
@@ -97,6 +109,26 @@ Global
97109
{79A8C5FE-94FA-4D60-86C7-016EBF0386B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
98110
{79A8C5FE-94FA-4D60-86C7-016EBF0386B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
99111
{79A8C5FE-94FA-4D60-86C7-016EBF0386B4}.Release|Any CPU.Build.0 = Release|Any CPU
112+
{976AD81D-4F7D-4A0C-9A2F-F665566EA5A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
113+
{976AD81D-4F7D-4A0C-9A2F-F665566EA5A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
114+
{976AD81D-4F7D-4A0C-9A2F-F665566EA5A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
115+
{976AD81D-4F7D-4A0C-9A2F-F665566EA5A9}.Release|Any CPU.Build.0 = Release|Any CPU
116+
{F27A3AE9-718C-4539-B541-4F37D16E4463}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
117+
{F27A3AE9-718C-4539-B541-4F37D16E4463}.Debug|Any CPU.Build.0 = Debug|Any CPU
118+
{F27A3AE9-718C-4539-B541-4F37D16E4463}.Release|Any CPU.ActiveCfg = Release|Any CPU
119+
{F27A3AE9-718C-4539-B541-4F37D16E4463}.Release|Any CPU.Build.0 = Release|Any CPU
120+
{7B7A5A6C-DB45-4056-B5C7-4286D16220DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{7B7A5A6C-DB45-4056-B5C7-4286D16220DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{7B7A5A6C-DB45-4056-B5C7-4286D16220DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
123+
{7B7A5A6C-DB45-4056-B5C7-4286D16220DE}.Release|Any CPU.Build.0 = Release|Any CPU
124+
{E588921B-5E74-45E8-841B-2654D2416D9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
125+
{E588921B-5E74-45E8-841B-2654D2416D9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
126+
{E588921B-5E74-45E8-841B-2654D2416D9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
127+
{E588921B-5E74-45E8-841B-2654D2416D9F}.Release|Any CPU.Build.0 = Release|Any CPU
128+
{693AB050-3305-471C-90C3-816BD694A930}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
129+
{693AB050-3305-471C-90C3-816BD694A930}.Debug|Any CPU.Build.0 = Debug|Any CPU
130+
{693AB050-3305-471C-90C3-816BD694A930}.Release|Any CPU.ActiveCfg = Release|Any CPU
131+
{693AB050-3305-471C-90C3-816BD694A930}.Release|Any CPU.Build.0 = Release|Any CPU
100132
EndGlobalSection
101133
GlobalSection(SolutionProperties) = preSolution
102134
HideSolutionNode = FALSE
@@ -119,6 +151,12 @@ Global
119151
{A97967FC-B333-4C27-BAFE-4369C7695688} = {DD95EC14-4783-4E08-A5EC-6C110DC7FB01}
120152
{A770A286-2B75-4BF7-8300-24CEC8D072AD} = {0D7AEFA3-ABB0-4AF1-A4C1-F8E05C241753}
121153
{79A8C5FE-94FA-4D60-86C7-016EBF0386B4} = {A770A286-2B75-4BF7-8300-24CEC8D072AD}
154+
{976AD81D-4F7D-4A0C-9A2F-F665566EA5A9} = {8C720480-750C-44C1-945B-961599088853}
155+
{F27A3AE9-718C-4539-B541-4F37D16E4463} = {8C720480-750C-44C1-945B-961599088853}
156+
{7B7A5A6C-DB45-4056-B5C7-4286D16220DE} = {8C720480-750C-44C1-945B-961599088853}
157+
{E588921B-5E74-45E8-841B-2654D2416D9F} = {8C720480-750C-44C1-945B-961599088853}
158+
{693AB050-3305-471C-90C3-816BD694A930} = {8C720480-750C-44C1-945B-961599088853}
159+
{8C720480-750C-44C1-945B-961599088853} = {0D7AEFA3-ABB0-4AF1-A4C1-F8E05C241753}
122160
EndGlobalSection
123161
GlobalSection(ExtensibilityGlobals) = postSolution
124162
SolutionGuid = {DF807CB9-3F57-4CF4-B501-26F9D4BB417C}

src/ExtCore.Data.Abstractions/ExtCore.Data.Abstractions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2015 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>3.1.0</VersionPrefix>
7+
<VersionPrefix>3.2.0-beta1</VersionPrefix>
88
<TargetFramework>netcoreapp2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Abstractions</AssemblyName>
1010
<PackageId>ExtCore.Data.Abstractions</PackageId>
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
16+
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
1717
</ItemGroup>
1818

1919
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Authors>Dmitry Sikorsky</Authors>
5+
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
6+
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7+
<VersionPrefix>3.2.0-beta1</VersionPrefix>
8+
<TargetFramework>netcoreapp2.0</TargetFramework>
9+
<AssemblyName>ExtCore.Data.Dapper.MySql</AssemblyName>
10+
<PackageId>ExtCore.Data.Dapper.MySql</PackageId>
11+
<PackageIconUrl>http://extcore.net/extcore_nuget_icon.png</PackageIconUrl>
12+
<PackageProjectUrl>http://extcore.net/</PackageProjectUrl>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.9-dmr" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\ExtCore.Data.Dapper\ExtCore.Data.Dapper.csproj" />
21+
</ItemGroup>
22+
23+
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
using Microsoft.Extensions.Options;
5+
6+
namespace ExtCore.Data.Dapper.MySql
7+
{
8+
/// <summary>
9+
/// Implements the <see cref="IStorageContext">IStorageContext</see> interface and represents MySQL database
10+
/// with the Dapper as the ORM.
11+
/// </summary>
12+
public class StorageContext : StorageContextBase
13+
{
14+
/// <summary>
15+
/// Initializes a new instance of the <see cref="StorageContext">StorageContext</see> class.
16+
/// </summary>
17+
/// <param name="connectionString">The connection string that is used to connect to the MySQL database.</param>
18+
public StorageContext(IOptions<StorageContextOptions> options)
19+
: base(options)
20+
{
21+
}
22+
}
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Authors>Dmitry Sikorsky</Authors>
5+
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
6+
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7+
<VersionPrefix>3.2.0-beta1</VersionPrefix>
8+
<TargetFramework>netcoreapp2.0</TargetFramework>
9+
<AssemblyName>ExtCore.Data.Dapper.PostgreSql</AssemblyName>
10+
<PackageId>ExtCore.Data.Dapper.PostgreSql</PackageId>
11+
<PackageIconUrl>http://extcore.net/extcore_nuget_icon.png</PackageIconUrl>
12+
<PackageProjectUrl>http://extcore.net/</PackageProjectUrl>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.0.0" />
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\ExtCore.Data.Dapper\ExtCore.Data.Dapper.csproj" />
21+
</ItemGroup>
22+
23+
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
using Microsoft.Extensions.Options;
5+
6+
namespace ExtCore.Data.Dapper.PostgreSql
7+
{
8+
/// <summary>
9+
/// Implements the <see cref="IStorageContext">IStorageContext</see> interface and represents PostgreSQL database
10+
/// with the Dapper as the ORM.
11+
/// </summary>
12+
public class StorageContext : StorageContextBase
13+
{
14+
/// <summary>
15+
/// Initializes a new instance of the <see cref="StorageContext">StorageContext</see> class.
16+
/// </summary>
17+
/// <param name="connectionString">The connection string that is used to connect to the PostgreSQL database.</param>
18+
public StorageContext(IOptions<StorageContextOptions> options)
19+
: base(options)
20+
{
21+
}
22+
}
23+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Authors>Dmitry Sikorsky</Authors>
5+
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
6+
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7+
<VersionPrefix>3.2.0-beta1</VersionPrefix>
8+
<TargetFramework>netcoreapp2.0</TargetFramework>
9+
<AssemblyName>ExtCore.Data.Dapper.SqlServer</AssemblyName>
10+
<PackageId>ExtCore.Data.Dapper.SqlServer</PackageId>
11+
<PackageIconUrl>http://extcore.net/extcore_nuget_icon.png</PackageIconUrl>
12+
<PackageProjectUrl>http://extcore.net/</PackageProjectUrl>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<ProjectReference Include="..\ExtCore.Data.Dapper\ExtCore.Data.Dapper.csproj" />
17+
</ItemGroup>
18+
19+
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
using Microsoft.Extensions.Options;
5+
6+
namespace ExtCore.Data.Dapper.SqlServer
7+
{
8+
/// <summary>
9+
/// Implements the <see cref="IStorageContext">IStorageContext</see> interface and represents SQL Server database
10+
/// with the Dapper as the ORM.
11+
/// </summary>
12+
public class StorageContext : StorageContextBase
13+
{
14+
/// <summary>
15+
/// Initializes a new instance of the <see cref="StorageContext">StorageContext</see> class.
16+
/// </summary>
17+
/// <param name="connectionString">The connection string that is used to connect to the SQL Server database.</param>
18+
public StorageContext(IOptions<StorageContextOptions> options)
19+
: base(options)
20+
{
21+
}
22+
}
23+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<Authors>Dmitry Sikorsky</Authors>
5+
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
6+
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7+
<VersionPrefix>3.2.0-beta1</VersionPrefix>
8+
<TargetFramework>netcoreapp2.0</TargetFramework>
9+
<AssemblyName>ExtCore.Data.Dapper.Sqlite</AssemblyName>
10+
<PackageId>ExtCore.Data.Dapper.Sqlite</PackageId>
11+
<PackageIconUrl>http://extcore.net/extcore_nuget_icon.png</PackageIconUrl>
12+
<PackageProjectUrl>http://extcore.net/</PackageProjectUrl>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<ProjectReference Include="..\ExtCore.Data.Dapper\ExtCore.Data.Dapper.csproj" />
17+
</ItemGroup>
18+
19+
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
using Microsoft.Extensions.Options;
5+
6+
namespace ExtCore.Data.Dapper.Sqlite
7+
{
8+
/// <summary>
9+
/// Implements the <see cref="IStorageContext">IStorageContext</see> interface and represents SQLite database
10+
/// with the Dapper as the ORM.
11+
/// </summary>
12+
public class StorageContext : StorageContextBase
13+
{
14+
/// <summary>
15+
/// Initializes a new instance of the <see cref="StorageContext">StorageContext</see> class.
16+
/// </summary>
17+
/// <param name="connectionString">The connection string that is used to connect to the SQLite database.</param>
18+
public StorageContext(IOptions<StorageContextOptions> options)
19+
: base(options)
20+
{
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)