Skip to content

Commit

Permalink
Closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
IliyanIlievPH authored and PaterSantyago committed Jul 20, 2020
1 parent e7d1bcc commit 3e3cbc4
Show file tree
Hide file tree
Showing 19 changed files with 72 additions and 328 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2019.1.1" />
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" />
<PackageReference Include="MAVN.Numerics" Version="1.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.0.0</Version>
Expand All @@ -7,7 +7,7 @@
<ProjectReference Include="..\MAVN.Job.QuorumTransactionWatcher.Domain\MAVN.Job.QuorumTransactionWatcher.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Lykke.RabbitMqBroker" Version="7.13.1" />
<PackageReference Include="Lykke.RabbitMqBroker" Version="7.13.3" />
<PackageReference Include="LykkeBiz.Logs.Nethereum" Version="1.0.3" />
<PackageReference Include="MAVN.PrivateBlockchain.CustomerRegistry" Version="1.0.0-beta.1" />
<PackageReference Include="MAVN.PrivateBlockchain.MVNToken" Version="1.0.0-beta.1" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Data.Common;
using System.Data.Common;
using JetBrains.Annotations;
using MAVN.Common.MsSql;
using MAVN.Job.QuorumTransactionWatcher.MsSqlRepositories.Entities;
using MAVN.Persistence.PostgreSQL.Legacy;
using Microsoft.EntityFrameworkCore;

namespace MAVN.Job.QuorumTransactionWatcher.MsSqlRepositories.Contexts
{
public class QtwContext : MsSqlContext
public class QtwContext : PostgreSQLContext
{
private const string Schema = "quorum_transaction_watcher";

Expand All @@ -29,7 +29,7 @@ public QtwContext(DbConnection dbConnection)
{
}

protected override void OnLykkeModelCreating(ModelBuilder modelBuilder)
protected override void OnMAVNModelCreating(ModelBuilder modelBuilder)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
using System.Threading.Tasks;
using MAVN.Common.MsSql;
using System.Threading.Tasks;
using MAVN.Job.QuorumTransactionWatcher.Domain.Repositories;
using MAVN.Job.QuorumTransactionWatcher.MsSqlRepositories.Constants;
using MAVN.Job.QuorumTransactionWatcher.MsSqlRepositories.Contexts;
using MAVN.Job.QuorumTransactionWatcher.MsSqlRepositories.Entities;
using MAVN.Persistence.PostgreSQL.Legacy;
using Microsoft.EntityFrameworkCore;

namespace MAVN.Job.QuorumTransactionWatcher.MsSqlRepositories
{
public class IndexingStateRepository : IIndexingStateRepository
{
private readonly MsSqlContextFactory<QtwContext> _contextFactory;
private readonly PostgreSQLContextFactory<QtwContext> _contextFactory;

public IndexingStateRepository(
MsSqlContextFactory<QtwContext> contextFactory)
PostgreSQLContextFactory<QtwContext> contextFactory)
{
_contextFactory = contextFactory;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MAVN.Common.MsSql" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
<PackageReference Include="Z.EntityFramework.Plus.EFCore" Version="2.0.0" />
<PackageReference Include="MAVN.Persistence.PostgreSQL.Legacy" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.5" />
<PackageReference Include="Z.EntityFramework.Plus.EFCore" Version="3.0.52" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MAVN.Job.QuorumTransactionWatcher.Domain\MAVN.Job.QuorumTransactionWatcher.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Migrations" />
</ItemGroup>

</Project>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3e3cbc4

Please sign in to comment.