Skip to content

Commit 4d64cd8

Browse files
committed
- bootstrap
1 parent 3e808ed commit 4d64cd8

6 files changed

Lines changed: 31 additions & 8 deletions

File tree

Shuttle.Core.Data.Tests/Shuttle.Core.Data.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
<HintPath>..\packages\NUnit.3.2.1\lib\net40\nunit.framework.dll</HintPath>
4747
<Private>True</Private>
4848
</Reference>
49-
<Reference Include="Shuttle.Core.Infrastructure, Version=4.2.76.0, Culture=neutral, processorArchitecture=MSIL">
50-
<HintPath>..\packages\Shuttle.Core.Infrastructure.4.2.76\lib\net45-full\Shuttle.Core.Infrastructure.dll</HintPath>
49+
<Reference Include="Shuttle.Core.Infrastructure, Version=4.2.78.0, Culture=neutral, processorArchitecture=MSIL">
50+
<HintPath>..\packages\Shuttle.Core.Infrastructure.4.2.78\lib\net45-full\Shuttle.Core.Infrastructure.dll</HintPath>
5151
<Private>True</Private>
5252
</Reference>
5353
<Reference Include="System" />

Shuttle.Core.Data.Tests/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<package id="Castle.Core" version="3.3.3" targetFramework="net45" />
44
<package id="Moq" version="4.5.8" targetFramework="net45" />
55
<package id="NUnit" version="3.2.1" targetFramework="net40" requireReinstallation="true" />
6-
<package id="Shuttle.Core.Infrastructure" version="4.2.76" targetFramework="net45" />
6+
<package id="Shuttle.Core.Infrastructure" version="4.2.78" targetFramework="net45" />
77
</packages>

Shuttle.Core.Data/Bootstrap.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Shuttle.Core.Infrastructure;
2+
3+
namespace Shuttle.Core.Data
4+
{
5+
public class Bootstrap : IComponentRegistryBootstrap
6+
{
7+
public void Register(IComponentRegistry registry)
8+
{
9+
Guard.AgainstNull(registry, "registry");
10+
11+
registry.AttemptRegister<IScriptProviderConfiguration, ScriptProviderConfiguration>();
12+
registry.AttemptRegister<IScriptProvider, ScriptProvider>();
13+
14+
registry.AttemptRegister<IDatabaseContextCache, ThreadStaticDatabaseContextCache>();
15+
registry.AttemptRegister<IDatabaseContextFactory, DatabaseContextFactory>();
16+
registry.AttemptRegister<IDbConnectionFactory, DbConnectionFactory>();
17+
registry.AttemptRegister<IDbCommandFactory, DbCommandFactory>();
18+
registry.AttemptRegister<IDatabaseGateway, DatabaseGateway>();
19+
registry.AttemptRegister<IQueryMapper, QueryMapper>();
20+
}
21+
}
22+
}

Shuttle.Core.Data/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
[assembly: AssemblyTitle("Shuttle.Core.Data for .NET Framework 4.6.1")]
2626
#endif
2727

28-
[assembly: AssemblyVersion("4.2.11.0")]
28+
[assembly: AssemblyVersion("4.2.13.0")]
2929
[assembly: AssemblyCopyright("Copyright © Eben Roux 2017")]
3030
[assembly: AssemblyProduct("Shuttle.Core")]
3131
[assembly: AssemblyCompany("Shuttle")]
3232
[assembly: AssemblyConfiguration("Release")]
33-
[assembly: AssemblyInformationalVersion("4.2.11")]
33+
[assembly: AssemblyInformationalVersion("4.2.13")]
3434
[assembly: ComVisible(false)]

Shuttle.Core.Data/Shuttle.Core.Data.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
<DefineConstants>$(DefineConstants);NET461FULL</DefineConstants>
6161
</PropertyGroup>
6262
<ItemGroup>
63-
<Reference Include="Shuttle.Core.Infrastructure, Version=4.2.76.0, Culture=neutral, processorArchitecture=MSIL">
64-
<HintPath>..\packages\Shuttle.Core.Infrastructure.4.2.76\lib\net40-full\Shuttle.Core.Infrastructure.dll</HintPath>
63+
<Reference Include="Shuttle.Core.Infrastructure, Version=4.2.78.0, Culture=neutral, processorArchitecture=MSIL">
64+
<HintPath>..\packages\Shuttle.Core.Infrastructure.4.2.78\lib\net40-full\Shuttle.Core.Infrastructure.dll</HintPath>
6565
<Private>True</Private>
6666
</Reference>
6767
<Reference Include="System" />
@@ -74,6 +74,7 @@
7474
<Reference Include="System.Xml" />
7575
</ItemGroup>
7676
<ItemGroup>
77+
<Compile Include="Bootstrap.cs" />
7778
<Compile Include="ConnectionStringService.cs" />
7879
<Compile Include="IScriptProvider.cs" />
7980
<Compile Include="IScriptProviderConfiguration.cs" />

Shuttle.Core.Data/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Shuttle.Core.Infrastructure" version="4.2.76" targetFramework="net40" />
3+
<package id="Shuttle.Core.Infrastructure" version="4.2.78" targetFramework="net40" />
44
</packages>

0 commit comments

Comments
 (0)