Skip to content

Commit

Permalink
Closes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
IliyanIlievPH committed Jul 2, 2020
1 parent 92feae0 commit 1053a3a
Show file tree
Hide file tree
Showing 31 changed files with 272 additions and 971 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<None Remove="MAVN.Service.DashboardStatistics.Client.xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Lykke.HttpClientGenerator" Version="2.5.0" />
<PackageReference Include="Lykke.SettingsReader" Version="5.2.0" />
<PackageReference Include="Lykke.HttpClientGenerator" Version="3.1.0" />
<PackageReference Include="Lykke.SettingsReader" Version="5.3.0" />
<PackageReference Include="MAVN.Numerics" Version="1.0.0" />
<PackageReference Include="Refit" Version="4.6.107" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Lykke.RabbitMqBroker" Version="7.13.2" />
<PackageReference Include="Lykke.RabbitMqBroker" Version="7.13.3" />
<PackageReference Include="MAVN.Service.PartnersPayments.Contract" Version="1.1.0" />
<PackageReference Include="MAVN.Service.SmartVouchers.Contract" Version="2.7.0" />
<PackageReference Include="MAVN.Service.SmartVouchers.Contract" Version="2.18.0" />
<PackageReference Include="MAVN.Service.WalletManagement.Contract" Version="1.1.1" />
<PackageReference Include="StackExchange.Redis" Version="2.1.30" />
<PackageReference Include="StackExchange.Redis" Version="2.1.58" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MAVN.Service.DashboardStatistics.Domain\MAVN.Service.DashboardStatistics.Domain.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Autofac;
using MAVN.Common.MsSql;
using MAVN.Persistence.PostgreSQL.Legacy;
using MAVN.Service.DashboardStatistics.Domain.Repositories;
using MAVN.Service.DashboardStatistics.MsSqlRepositories.Repositories;

Expand All @@ -16,7 +16,7 @@ public AutofacModule(string connectionString)

protected override void Load(ContainerBuilder builder)
{
builder.RegisterMsSql(_connectionString,
builder.RegisterPostgreSQL(_connectionString,
connectionString => new DashboardStatisticsContext(connectionString, false),
dbConnection => new DashboardStatisticsContext(dbConnection));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System;
using System.Data.Common;
using MAVN.Common.MsSql;
using MAVN.Persistence.PostgreSQL.Legacy;
using MAVN.Service.DashboardStatistics.Domain.Enums;
using MAVN.Service.DashboardStatistics.MsSqlRepositories.Entities;
using Microsoft.EntityFrameworkCore;

namespace MAVN.Service.DashboardStatistics.MsSqlRepositories
{
public class DashboardStatisticsContext : MsSqlContext
public class DashboardStatisticsContext : PostgreSQLContext
{
private const string Schema = "dashboard_statistic";

Expand All @@ -34,11 +34,11 @@ public DashboardStatisticsContext(DbConnection dbConnection)

public DbSet<PartnerVouchersDailyStatsEntity> PartnerVouchersDailyStatistics { get; set; }

protected override void OnLykkeConfiguring(DbContextOptionsBuilder optionsBuilder)
protected override void OnMAVNConfiguring(DbContextOptionsBuilder optionsBuilder)
{
}

protected override void OnLykkeModelCreating(ModelBuilder modelBuilder)
protected override void OnMAVNModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<CustomerStatisticEntity>()
.HasIndex(c => c.CustomerId);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="9.0.0" />
<PackageReference Include="MAVN.Common.MsSql" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.4" />
<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>
</ItemGroup>
<PropertyGroup>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down

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 1053a3a

Please sign in to comment.