maliming
5 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
8 changed files with
40 additions and
8 deletions
-
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceDbContextFactory.cs
-
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/EntityFrameworkCore/AdministrationServiceEntityFrameworkCoreModule.cs
-
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EntityFrameworkCore/IdentityServiceDbContextFactory.cs
-
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/EntityFrameworkCore/IdentityServiceEntityFrameworkCoreModule.cs
-
services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/EntityFrameworkCore/OrderingServiceDbContextFactory.cs
-
services/ordering/src/EShopOnAbp.OrderingService.EntityFrameworkCore/EntityFrameworkCore/OrderingServiceEntityFrameworkCoreModule.cs
-
services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceDbContextFactory.cs
-
services/payment/src/EShopOnAbp.PaymentService.EntityFrameworkCore/EntityFrameworkCore/PaymentServiceEntityFrameworkCoreModule.cs
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using System; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Design; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using System.IO; |
|
|
|
@ -15,6 +16,9 @@ namespace EShopOnAbp.AdministrationService.EntityFrameworkCore |
|
|
|
b.MigrationsHistoryTable("__AdministrationService_Migrations"); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
return new AdministrationServiceDbContext(builder.Options); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using System; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.AuditLogging.EntityFrameworkCore; |
|
|
|
using Volo.Abp.BlobStoring.Database.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
@ -34,6 +35,9 @@ namespace EShopOnAbp.AdministrationService.EntityFrameworkCore |
|
|
|
options.AddDefaultRepositories(includeAllEntities: true); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
Configure<AbpDbContextOptions>(options => |
|
|
|
{ |
|
|
|
options.Configure<AdministrationServiceDbContext>(c => |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.IO; |
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Design; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
@ -20,6 +21,9 @@ namespace EShopOnAbp.IdentityService.EntityFrameworkCore |
|
|
|
b.MigrationsHistoryTable("__IdentityService_Migrations"); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
return new IdentityServiceDbContext(builder.Options); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using System; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore.PostgreSql; |
|
|
|
using Volo.Abp.Identity.EntityFrameworkCore; |
|
|
|
@ -30,6 +31,9 @@ namespace EShopOnAbp.IdentityService.EntityFrameworkCore |
|
|
|
options.AddDefaultRepositories(includeAllEntities: true); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
Configure<AbpDbContextOptions>(options => |
|
|
|
{ |
|
|
|
options.Configure<IdentityServiceDbContext>(c => |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.IO; |
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Design; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
@ -23,6 +24,9 @@ namespace EShopOnAbp.OrderingService.EntityFrameworkCore |
|
|
|
b.MigrationsHistoryTable("__OrderingService_Migrations"); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
return new OrderingServiceDbContext(builder.Options); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using System; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore.PostgreSql; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
@ -25,6 +26,9 @@ namespace EShopOnAbp.OrderingService.EntityFrameworkCore |
|
|
|
options.AddDefaultRepositories(includeAllEntities: true); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
Configure<AbpDbContextOptions>(options => |
|
|
|
{ |
|
|
|
/* The main point to change your DBMS. |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.IO; |
|
|
|
using System; |
|
|
|
using System.IO; |
|
|
|
using Microsoft.EntityFrameworkCore; |
|
|
|
using Microsoft.EntityFrameworkCore.Design; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
@ -23,6 +24,9 @@ namespace EShopOnAbp.PaymentService.EntityFrameworkCore |
|
|
|
b.MigrationsHistoryTable("__PaymentService_Migrations"); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
return new PaymentServiceDbContext(builder.Options); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using EShopOnAbp.PaymentService.PaymentRequests; |
|
|
|
using System; |
|
|
|
using EShopOnAbp.PaymentService.PaymentRequests; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore.PostgreSql; |
|
|
|
@ -24,6 +25,9 @@ namespace EShopOnAbp.PaymentService.EntityFrameworkCore |
|
|
|
options.AddRepository<PaymentRequest, EfCorePaymentRequestRepository>(); |
|
|
|
}); |
|
|
|
|
|
|
|
// https://www.npgsql.org/efcore/release-notes/6.0.html#opting-out-of-the-new-timestamp-mapping-logic
|
|
|
|
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true); |
|
|
|
|
|
|
|
Configure<AbpDbContextOptions>(options => |
|
|
|
{ |
|
|
|
/* The main point to change your DBMS. |
|
|
|
|