Browse Source

Install BookingService module in the sample app

pull/194/head
gdlcf88 4 years ago
parent
commit
6469f9c077
  1. 2
      Directory.Build.props
  2. 1
      samples/EShopSample/aspnet-core/src/EShopSample.Application.Contracts/EShopSample.Application.Contracts.csproj
  3. 6
      samples/EShopSample/aspnet-core/src/EShopSample.Application.Contracts/EShopSampleApplicationContractsModule.cs
  4. 1
      samples/EShopSample/aspnet-core/src/EShopSample.Application/EShopSample.Application.csproj
  5. 6
      samples/EShopSample/aspnet-core/src/EShopSample.Application/EShopSampleApplicationModule.cs
  6. 1
      samples/EShopSample/aspnet-core/src/EShopSample.Domain.Shared/EShopSample.Domain.Shared.csproj
  7. 6
      samples/EShopSample/aspnet-core/src/EShopSample.Domain.Shared/EShopSampleDomainSharedModule.cs
  8. 1
      samples/EShopSample/aspnet-core/src/EShopSample.Domain/EShopSample.Domain.csproj
  9. 6
      samples/EShopSample/aspnet-core/src/EShopSample.Domain/EShopSampleDomainModule.cs
  10. 1
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EShopSample.EntityFrameworkCore.csproj
  11. 4
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EntityFrameworkCore/EShopSampleDbContext.cs
  12. 6
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EntityFrameworkCore/EShopSampleEntityFrameworkCoreModule.cs
  13. 6165
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220729153358_InstalledBookingServiceModule.Designer.cs
  14. 299
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220729153358_InstalledBookingServiceModule.cs
  15. 583
      samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/EShopSampleDbContextModelSnapshot.cs
  16. 1
      samples/EShopSample/aspnet-core/src/EShopSample.HttpApi.Client/EShopSample.HttpApi.Client.csproj
  17. 6
      samples/EShopSample/aspnet-core/src/EShopSample.HttpApi.Client/EShopSampleHttpApiClientModule.cs
  18. 1
      samples/EShopSample/aspnet-core/src/EShopSample.HttpApi/EShopSample.HttpApi.csproj
  19. 6
      samples/EShopSample/aspnet-core/src/EShopSample.HttpApi/EShopSampleHttpApiModule.cs
  20. 1
      samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj
  21. 4
      samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSampleWebModule.cs

2
Directory.Build.props

@ -5,7 +5,7 @@
<EasyAbpAbpTreesModuleVersion>2.7.1</EasyAbpAbpTreesModuleVersion> <EasyAbpAbpTreesModuleVersion>2.7.1</EasyAbpAbpTreesModuleVersion>
<EasyAbpPaymentServiceModuleVersion>2.0.15</EasyAbpPaymentServiceModuleVersion> <EasyAbpPaymentServiceModuleVersion>2.0.15</EasyAbpPaymentServiceModuleVersion>
<EasyAbpAbpTagHelperPlusModuleVersion>1.0.1</EasyAbpAbpTagHelperPlusModuleVersion> <EasyAbpAbpTagHelperPlusModuleVersion>1.0.1</EasyAbpAbpTagHelperPlusModuleVersion>
<EasyAbpBookingServiceModuleVersion>0.1.0</EasyAbpBookingServiceModuleVersion> <EasyAbpBookingServiceModuleVersion>0.1.1</EasyAbpBookingServiceModuleVersion>
<DaprSdkVersion>1.7.0</DaprSdkVersion> <DaprSdkVersion>1.7.0</DaprSdkVersion>
<OrleansVersion>3.6.2</OrleansVersion> <OrleansVersion>3.6.2</OrleansVersion>
<NodaMoneyVersion>1.0.5</NodaMoneyVersion> <NodaMoneyVersion>1.0.5</NodaMoneyVersion>

1
samples/EShopSample/aspnet-core/src/EShopSample.Application.Contracts/EShopSample.Application.Contracts.csproj

@ -21,6 +21,7 @@
<PackageReference Include="EasyAbp.PaymentService.Application.Contracts" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Application.Contracts" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application.Contracts" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application.Contracts" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.Application.Contracts" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.Application.Contracts" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.Application.Contracts" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.ObjectExtending" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.ObjectExtending" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="$(AbpVersion)" />

6
samples/EShopSample/aspnet-core/src/EShopSample.Application.Contracts/EShopSampleApplicationContractsModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop; using EasyAbp.BookingService;
using EasyAbp.EShop;
using EasyAbp.EShop.Plugins.Baskets; using EasyAbp.EShop.Plugins.Baskets;
using EasyAbp.EShop.Plugins.Booking; using EasyAbp.EShop.Plugins.Booking;
using EasyAbp.EShop.Plugins.Coupons; using EasyAbp.EShop.Plugins.Coupons;
@ -33,7 +34,8 @@ namespace EShopSample
typeof(EShopProductsPluginsFlashSalesApplicationContractsModule), typeof(EShopProductsPluginsFlashSalesApplicationContractsModule),
typeof(PaymentServiceApplicationContractsModule), typeof(PaymentServiceApplicationContractsModule),
typeof(PaymentServiceWeChatPayApplicationContractsModule), typeof(PaymentServiceWeChatPayApplicationContractsModule),
typeof(PaymentServicePrepaymentApplicationContractsModule) typeof(PaymentServicePrepaymentApplicationContractsModule),
typeof(BookingServiceApplicationContractsModule)
)] )]
public class EShopSampleApplicationContractsModule : AbpModule public class EShopSampleApplicationContractsModule : AbpModule
{ {

1
samples/EShopSample/aspnet-core/src/EShopSample.Application/EShopSample.Application.csproj

@ -24,6 +24,7 @@
<PackageReference Include="EasyAbp.PaymentService.Application" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Application" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.Application" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.Application" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.Application" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.Application" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.Account.Application" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Account.Application" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Identity.Application" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Identity.Application" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="$(AbpVersion)" />

6
samples/EShopSample/aspnet-core/src/EShopSample.Application/EShopSampleApplicationModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop; using EasyAbp.BookingService;
using EasyAbp.EShop;
using EasyAbp.EShop.Orders.Plugins.Coupons; using EasyAbp.EShop.Orders.Plugins.Coupons;
using EasyAbp.EShop.Orders.Plugins.FlashSales; using EasyAbp.EShop.Orders.Plugins.FlashSales;
using EasyAbp.EShop.Plugins.Baskets; using EasyAbp.EShop.Plugins.Baskets;
@ -37,7 +38,8 @@ namespace EShopSample
typeof(EShopProductsPluginsFlashSalesApplicationModule), typeof(EShopProductsPluginsFlashSalesApplicationModule),
typeof(PaymentServiceApplicationModule), typeof(PaymentServiceApplicationModule),
typeof(PaymentServiceWeChatPayApplicationModule), typeof(PaymentServiceWeChatPayApplicationModule),
typeof(PaymentServicePrepaymentApplicationModule) typeof(PaymentServicePrepaymentApplicationModule),
typeof(BookingServiceApplicationModule)
)] )]
public class EShopSampleApplicationModule : AbpModule public class EShopSampleApplicationModule : AbpModule
{ {

1
samples/EShopSample/aspnet-core/src/EShopSample.Domain.Shared/EShopSample.Domain.Shared.csproj

@ -12,6 +12,7 @@
<PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Domain.Shared" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain.Shared" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain.Shared" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.Domain.Shared" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.Domain.Shared" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.Domain.Shared" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="$(AbpVersion)" />

6
samples/EShopSample/aspnet-core/src/EShopSample.Domain.Shared/EShopSampleDomainSharedModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop; using EasyAbp.BookingService;
using EasyAbp.EShop;
using EasyAbp.EShop.Plugins.Baskets; using EasyAbp.EShop.Plugins.Baskets;
using EasyAbp.EShop.Plugins.Booking; using EasyAbp.EShop.Plugins.Booking;
using EasyAbp.EShop.Plugins.Coupons; using EasyAbp.EShop.Plugins.Coupons;
@ -38,7 +39,8 @@ namespace EShopSample
typeof(EShopPluginsFlashSalesDomainSharedModule), typeof(EShopPluginsFlashSalesDomainSharedModule),
typeof(PaymentServiceDomainSharedModule), typeof(PaymentServiceDomainSharedModule),
typeof(PaymentServiceWeChatPayDomainSharedModule), typeof(PaymentServiceWeChatPayDomainSharedModule),
typeof(PaymentServicePrepaymentDomainSharedModule) typeof(PaymentServicePrepaymentDomainSharedModule),
typeof(BookingServiceDomainSharedModule)
)] )]
public class EShopSampleDomainSharedModule : AbpModule public class EShopSampleDomainSharedModule : AbpModule
{ {

1
samples/EShopSample/aspnet-core/src/EShopSample.Domain/EShopSample.Domain.csproj

@ -20,6 +20,7 @@
<PackageReference Include="EasyAbp.PaymentService.Domain" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Domain" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.Domain" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.Domain" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.Domain" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.Domain" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.DataAnnotations" Version="2.2.0" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.DataAnnotations" Version="2.2.0" />
<PackageReference Include="Volo.Abp.Identity.Domain" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Identity.Domain" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="$(AbpVersion)" />

6
samples/EShopSample/aspnet-core/src/EShopSample.Domain/EShopSampleDomainModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop; using EasyAbp.BookingService;
using EasyAbp.EShop;
using EasyAbp.EShop.Plugins.Baskets; using EasyAbp.EShop.Plugins.Baskets;
using EasyAbp.EShop.Plugins.Booking; using EasyAbp.EShop.Plugins.Booking;
using EasyAbp.EShop.Plugins.Coupons; using EasyAbp.EShop.Plugins.Coupons;
@ -46,7 +47,8 @@ namespace EShopSample
typeof(EShopPluginsFlashSalesDomainModule), typeof(EShopPluginsFlashSalesDomainModule),
typeof(PaymentServiceDomainModule), typeof(PaymentServiceDomainModule),
typeof(PaymentServiceWeChatPayDomainModule), typeof(PaymentServiceWeChatPayDomainModule),
typeof(PaymentServicePrepaymentDomainModule) typeof(PaymentServicePrepaymentDomainModule),
typeof(BookingServiceDomainModule)
)] )]
public class EShopSampleDomainModule : AbpModule public class EShopSampleDomainModule : AbpModule
{ {

1
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EShopSample.EntityFrameworkCore.csproj

@ -17,6 +17,7 @@
<PackageReference Include="EasyAbp.PaymentService.EntityFrameworkCore" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.EntityFrameworkCore" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.EntityFrameworkCore" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.EntityFrameworkCore" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.EntityFrameworkCore" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.EntityFrameworkCore" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="$(AbpVersion)" />

4
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EntityFrameworkCore/EShopSampleDbContext.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop.EntityFrameworkCore; using EasyAbp.BookingService.EntityFrameworkCore;
using EasyAbp.EShop.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore; using EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Booking.EntityFrameworkCore; using EasyAbp.EShop.Plugins.Booking.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Coupons.EntityFrameworkCore; using EasyAbp.EShop.Plugins.Coupons.EntityFrameworkCore;
@ -88,6 +89,7 @@ namespace EShopSample.EntityFrameworkCore
builder.ConfigurePaymentService(); builder.ConfigurePaymentService();
builder.ConfigurePaymentServiceWeChatPay(); builder.ConfigurePaymentServiceWeChatPay();
builder.ConfigurePaymentServicePrepayment(); builder.ConfigurePaymentServicePrepayment();
builder.ConfigureBookingService();
/* Configure your own tables/entities inside here */ /* Configure your own tables/entities inside here */
} }

6
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/EntityFrameworkCore/EShopSampleEntityFrameworkCoreModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop.EntityFrameworkCore; using EasyAbp.BookingService.EntityFrameworkCore;
using EasyAbp.EShop.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore; using EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Booking.EntityFrameworkCore; using EasyAbp.EShop.Plugins.Booking.EntityFrameworkCore;
using EasyAbp.EShop.Plugins.Coupons.EntityFrameworkCore; using EasyAbp.EShop.Plugins.Coupons.EntityFrameworkCore;
@ -39,7 +40,8 @@ namespace EShopSample.EntityFrameworkCore
typeof(EShopPluginsFlashSalesEntityFrameworkCoreModule), typeof(EShopPluginsFlashSalesEntityFrameworkCoreModule),
typeof(PaymentServiceEntityFrameworkCoreModule), typeof(PaymentServiceEntityFrameworkCoreModule),
typeof(PaymentServiceWeChatPayEntityFrameworkCoreModule), typeof(PaymentServiceWeChatPayEntityFrameworkCoreModule),
typeof(PaymentServicePrepaymentEntityFrameworkCoreModule) typeof(PaymentServicePrepaymentEntityFrameworkCoreModule),
typeof(BookingServiceEntityFrameworkCoreModule)
)] )]
public class EShopSampleEntityFrameworkCoreModule : AbpModule public class EShopSampleEntityFrameworkCoreModule : AbpModule
{ {

6165
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220729153358_InstalledBookingServiceModule.Designer.cs

File diff suppressed because it is too large

299
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/20220729153358_InstalledBookingServiceModule.cs

@ -0,0 +1,299 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopSample.Migrations
{
public partial class InstalledBookingServiceModule : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "OutRefundNo",
table: "EasyAbpPaymentServiceWeChatPayRefundRecords",
type: "nvarchar(450)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.CreateTable(
name: "EasyAbpBookingServiceAssetCategories",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AssetDefinitionName = table.Column<string>(type: "nvarchar(max)", nullable: true),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DefaultPeriodUsable = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MaxDaysInAdvance = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MaxTimespanInAdvance = table.Column<TimeSpan>(type: "time", nullable: true),
TimeInAdvance_MinDaysInAdvance = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MinTimespanInAdvance = table.Column<TimeSpan>(type: "time", nullable: true),
Disabled = table.Column<bool>(type: "bit", nullable: false),
Code = table.Column<string>(type: "nvarchar(max)", nullable: true),
Level = table.Column<int>(type: "int", nullable: false),
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DisplayName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServiceAssetCategories", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpBookingServiceAssetCategories_EasyAbpBookingServiceAssetCategories_ParentId",
column: x => x.ParentId,
principalTable: "EasyAbpBookingServiceAssetCategories",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServiceAssetOccupancies",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Asset = table.Column<string>(type: "nvarchar(max)", nullable: true),
AssetDefinitionName = table.Column<string>(type: "nvarchar(max)", nullable: true),
Volume = table.Column<int>(type: "int", nullable: false),
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
StartingTime = table.Column<TimeSpan>(type: "time", nullable: false),
Duration = table.Column<TimeSpan>(type: "time", nullable: false),
OccupierUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
OccupierName = table.Column<string>(type: "nvarchar(max)", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServiceAssetOccupancies", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServiceAssetOccupancyCounts",
columns: table => new
{
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
StartingTime = table.Column<TimeSpan>(type: "time", nullable: false),
Duration = table.Column<TimeSpan>(type: "time", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Asset = table.Column<string>(type: "nvarchar(max)", nullable: true),
Volume = table.Column<int>(type: "int", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServiceAssetOccupancyCounts", x => new { x.Date, x.AssetId, x.StartingTime, x.Duration });
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServiceAssetPeriodSchemes",
columns: table => new
{
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServiceAssetPeriodSchemes", x => new { x.Date, x.AssetId });
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServiceAssets",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
AssetDefinitionName = table.Column<string>(type: "nvarchar(max)", nullable: true),
AssetCategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DefaultPeriodUsable = table.Column<int>(type: "int", nullable: true),
Volume = table.Column<int>(type: "int", nullable: false),
Priority = table.Column<int>(type: "int", nullable: false),
TimeInAdvance_MaxDaysInAdvance = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MaxTimespanInAdvance = table.Column<TimeSpan>(type: "time", nullable: true),
TimeInAdvance_MinDaysInAdvance = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MinTimespanInAdvance = table.Column<TimeSpan>(type: "time", nullable: true),
Disabled = table.Column<bool>(type: "bit", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServiceAssets", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServiceAssetSchedules",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
AssetId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
PeriodUsable = table.Column<int>(type: "int", nullable: false),
TimeInAdvance_MaxDaysInAdvance = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MaxTimespanInAdvance = table.Column<TimeSpan>(type: "time", nullable: true),
TimeInAdvance_MinDaysInAdvance = table.Column<int>(type: "int", nullable: true),
TimeInAdvance_MinTimespanInAdvance = table.Column<TimeSpan>(type: "time", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServiceAssetSchedules", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServicePeriodSchemes",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
IsDefault = table.Column<bool>(type: "bit", nullable: false),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServicePeriodSchemes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "EasyAbpBookingServicePeriods",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
StartingTime = table.Column<TimeSpan>(type: "time", nullable: false),
Duration = table.Column<TimeSpan>(type: "time", nullable: false),
PeriodSchemeId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_EasyAbpBookingServicePeriods", x => x.Id);
table.ForeignKey(
name: "FK_EasyAbpBookingServicePeriods_EasyAbpBookingServicePeriodSchemes_PeriodSchemeId",
column: x => x.PeriodSchemeId,
principalTable: "EasyAbpBookingServicePeriodSchemes",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_EasyAbpPaymentServiceWeChatPayRefundRecords_OutRefundNo",
table: "EasyAbpPaymentServiceWeChatPayRefundRecords",
column: "OutRefundNo");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpBookingServiceAssetCategories_ParentId",
table: "EasyAbpBookingServiceAssetCategories",
column: "ParentId");
migrationBuilder.CreateIndex(
name: "IX_EasyAbpBookingServiceAssetOccupancies_Date_AssetId_StartingTime_Duration",
table: "EasyAbpBookingServiceAssetOccupancies",
columns: new[] { "Date", "AssetId", "StartingTime", "Duration" });
migrationBuilder.CreateIndex(
name: "IX_EasyAbpBookingServiceAssetOccupancies_Date_OccupierUserId",
table: "EasyAbpBookingServiceAssetOccupancies",
columns: new[] { "Date", "OccupierUserId" });
migrationBuilder.CreateIndex(
name: "IX_EasyAbpBookingServiceAssetSchedules_Date_AssetId_PeriodSchemeId",
table: "EasyAbpBookingServiceAssetSchedules",
columns: new[] { "Date", "AssetId", "PeriodSchemeId" });
migrationBuilder.CreateIndex(
name: "IX_EasyAbpBookingServicePeriods_PeriodSchemeId",
table: "EasyAbpBookingServicePeriods",
column: "PeriodSchemeId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "EasyAbpBookingServiceAssetCategories");
migrationBuilder.DropTable(
name: "EasyAbpBookingServiceAssetOccupancies");
migrationBuilder.DropTable(
name: "EasyAbpBookingServiceAssetOccupancyCounts");
migrationBuilder.DropTable(
name: "EasyAbpBookingServiceAssetPeriodSchemes");
migrationBuilder.DropTable(
name: "EasyAbpBookingServiceAssets");
migrationBuilder.DropTable(
name: "EasyAbpBookingServiceAssetSchedules");
migrationBuilder.DropTable(
name: "EasyAbpBookingServicePeriods");
migrationBuilder.DropTable(
name: "EasyAbpBookingServicePeriodSchemes");
migrationBuilder.DropIndex(
name: "IX_EasyAbpPaymentServiceWeChatPayRefundRecords_OutRefundNo",
table: "EasyAbpPaymentServiceWeChatPayRefundRecords");
migrationBuilder.AlterColumn<string>(
name: "OutRefundNo",
table: "EasyAbpPaymentServiceWeChatPayRefundRecords",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(450)",
oldNullable: true);
}
}
}

583
samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore/Migrations/EShopSampleDbContextModelSnapshot.cs

@ -19,11 +19,475 @@ namespace EShopSample.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("ProductVersion", "6.0.6") .HasAnnotation("ProductVersion", "6.0.7")
.HasAnnotation("Relational:MaxIdentifierLength", 128); .HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("EasyAbp.BookingService.AssetCategories.AssetCategory", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("AssetDefinitionName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Code")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<int?>("DefaultPeriodUsable")
.HasColumnType("int");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<bool>("Disabled")
.HasColumnType("bit");
b.Property<string>("DisplayName")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<int>("Level")
.HasColumnType("int");
b.Property<Guid?>("ParentId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("ParentId");
b.ToTable("EasyAbpBookingServiceAssetCategories", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.AssetOccupancies.AssetOccupancy", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("Asset")
.HasColumnType("nvarchar(max)");
b.Property<string>("AssetDefinitionName")
.HasColumnType("nvarchar(max)");
b.Property<Guid>("AssetId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<TimeSpan>("Duration")
.HasColumnType("time");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("OccupierName")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("OccupierUserId")
.HasColumnType("uniqueidentifier");
b.Property<TimeSpan>("StartingTime")
.HasColumnType("time");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<int>("Volume")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Date", "OccupierUserId");
b.HasIndex("Date", "AssetId", "StartingTime", "Duration");
b.ToTable("EasyAbpBookingServiceAssetOccupancies", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.AssetOccupancyCounts.AssetOccupancyCount", b =>
{
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<Guid>("AssetId")
.HasColumnType("uniqueidentifier");
b.Property<TimeSpan>("StartingTime")
.HasColumnType("time");
b.Property<TimeSpan>("Duration")
.HasColumnType("time");
b.Property<string>("Asset")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<int>("Volume")
.HasColumnType("int");
b.HasKey("Date", "AssetId", "StartingTime", "Duration");
b.ToTable("EasyAbpBookingServiceAssetOccupancyCounts", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.AssetPeriodSchemes.AssetPeriodScheme", b =>
{
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<Guid>("AssetId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<Guid>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Date", "AssetId");
b.ToTable("EasyAbpBookingServiceAssetPeriodSchemes", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.Assets.Asset", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid>("AssetCategoryId")
.HasColumnType("uniqueidentifier");
b.Property<string>("AssetDefinitionName")
.HasColumnType("nvarchar(max)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<int?>("DefaultPeriodUsable")
.HasColumnType("int");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<bool>("Disabled")
.HasColumnType("bit");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<int>("Priority")
.HasColumnType("int");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property<int>("Volume")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("EasyAbpBookingServiceAssets", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.AssetSchedules.AssetSchedule", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<Guid>("AssetId")
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<Guid>("PeriodId")
.HasColumnType("uniqueidentifier");
b.Property<Guid>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<int>("PeriodUsable")
.HasColumnType("int");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Date", "AssetId", "PeriodSchemeId");
b.ToTable("EasyAbpBookingServiceAssetSchedules", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.PeriodSchemes.Period", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<TimeSpan>("Duration")
.HasColumnType("time");
b.Property<Guid?>("PeriodSchemeId")
.HasColumnType("uniqueidentifier");
b.Property<TimeSpan>("StartingTime")
.HasColumnType("time");
b.HasKey("Id");
b.HasIndex("PeriodSchemeId");
b.ToTable("EasyAbpBookingServicePeriods", (string)null);
});
modelBuilder.Entity("EasyAbp.BookingService.PeriodSchemes.PeriodScheme", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("uniqueidentifier")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime2")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDefault")
.HasColumnType("bit");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("EasyAbpBookingServicePeriodSchemes", (string)null);
});
modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.Order", b => modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.Order", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")
@ -3055,7 +3519,7 @@ namespace EShopSample.Migrations
.HasColumnType("nvarchar(max)"); .HasColumnType("nvarchar(max)");
b.Property<string>("OutRefundNo") b.Property<string>("OutRefundNo")
.HasColumnType("nvarchar(max)"); .HasColumnType("nvarchar(450)");
b.Property<string>("OutTradeNo") b.Property<string>("OutTradeNo")
.HasColumnType("nvarchar(max)"); .HasColumnType("nvarchar(max)");
@ -3108,6 +3572,8 @@ namespace EShopSample.Migrations
b.HasKey("Id"); b.HasKey("Id");
b.HasIndex("OutRefundNo");
b.HasIndex("PaymentId"); b.HasIndex("PaymentId");
b.ToTable("EasyAbpPaymentServiceWeChatPayRefundRecords", (string)null); b.ToTable("EasyAbpPaymentServiceWeChatPayRefundRecords", (string)null);
@ -5041,6 +5507,109 @@ namespace EShopSample.Migrations
b.ToTable("AbpTenantConnectionStrings", (string)null); b.ToTable("AbpTenantConnectionStrings", (string)null);
}); });
modelBuilder.Entity("EasyAbp.BookingService.AssetCategories.AssetCategory", b =>
{
b.HasOne("EasyAbp.BookingService.AssetCategories.AssetCategory", "Parent")
.WithMany("Children")
.HasForeignKey("ParentId");
b.OwnsOne("EasyAbp.BookingService.TimeInAdvance", "TimeInAdvance", b1 =>
{
b1.Property<Guid>("AssetCategoryId")
.HasColumnType("uniqueidentifier");
b1.Property<int>("MaxDaysInAdvance")
.HasColumnType("int");
b1.Property<TimeSpan>("MaxTimespanInAdvance")
.HasColumnType("time");
b1.Property<int?>("MinDaysInAdvance")
.HasColumnType("int");
b1.Property<TimeSpan?>("MinTimespanInAdvance")
.HasColumnType("time");
b1.HasKey("AssetCategoryId");
b1.ToTable("EasyAbpBookingServiceAssetCategories");
b1.WithOwner()
.HasForeignKey("AssetCategoryId");
});
b.Navigation("Parent");
b.Navigation("TimeInAdvance");
});
modelBuilder.Entity("EasyAbp.BookingService.Assets.Asset", b =>
{
b.OwnsOne("EasyAbp.BookingService.TimeInAdvance", "TimeInAdvance", b1 =>
{
b1.Property<Guid>("AssetId")
.HasColumnType("uniqueidentifier");
b1.Property<int>("MaxDaysInAdvance")
.HasColumnType("int");
b1.Property<TimeSpan>("MaxTimespanInAdvance")
.HasColumnType("time");
b1.Property<int?>("MinDaysInAdvance")
.HasColumnType("int");
b1.Property<TimeSpan?>("MinTimespanInAdvance")
.HasColumnType("time");
b1.HasKey("AssetId");
b1.ToTable("EasyAbpBookingServiceAssets");
b1.WithOwner()
.HasForeignKey("AssetId");
});
b.Navigation("TimeInAdvance");
});
modelBuilder.Entity("EasyAbp.BookingService.AssetSchedules.AssetSchedule", b =>
{
b.OwnsOne("EasyAbp.BookingService.TimeInAdvance", "TimeInAdvance", b1 =>
{
b1.Property<Guid>("AssetScheduleId")
.HasColumnType("uniqueidentifier");
b1.Property<int>("MaxDaysInAdvance")
.HasColumnType("int");
b1.Property<TimeSpan>("MaxTimespanInAdvance")
.HasColumnType("time");
b1.Property<int?>("MinDaysInAdvance")
.HasColumnType("int");
b1.Property<TimeSpan?>("MinTimespanInAdvance")
.HasColumnType("time");
b1.HasKey("AssetScheduleId");
b1.ToTable("EasyAbpBookingServiceAssetSchedules");
b1.WithOwner()
.HasForeignKey("AssetScheduleId");
});
b.Navigation("TimeInAdvance");
});
modelBuilder.Entity("EasyAbp.BookingService.PeriodSchemes.Period", b =>
{
b.HasOne("EasyAbp.BookingService.PeriodSchemes.PeriodScheme", null)
.WithMany("Periods")
.HasForeignKey("PeriodSchemeId");
});
modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.OrderExtraFee", b => modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.OrderExtraFee", b =>
{ {
b.HasOne("EasyAbp.EShop.Orders.Orders.Order", null) b.HasOne("EasyAbp.EShop.Orders.Orders.Order", null)
@ -5427,6 +5996,16 @@ namespace EShopSample.Migrations
.IsRequired(); .IsRequired();
}); });
modelBuilder.Entity("EasyAbp.BookingService.AssetCategories.AssetCategory", b =>
{
b.Navigation("Children");
});
modelBuilder.Entity("EasyAbp.BookingService.PeriodSchemes.PeriodScheme", b =>
{
b.Navigation("Periods");
});
modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.Order", b => modelBuilder.Entity("EasyAbp.EShop.Orders.Orders.Order", b =>
{ {
b.Navigation("OrderExtraFees"); b.Navigation("OrderExtraFees");

1
samples/EShopSample/aspnet-core/src/EShopSample.HttpApi.Client/EShopSample.HttpApi.Client.csproj

@ -21,6 +21,7 @@
<PackageReference Include="EasyAbp.PaymentService.HttpApi.Client" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.HttpApi.Client" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi.Client" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi.Client" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.HttpApi.Client" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.HttpApi.Client" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.HttpApi.Client" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.Account.HttpApi.Client" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Account.HttpApi.Client" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Identity.HttpApi.Client" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Identity.HttpApi.Client" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="$(AbpVersion)" />

6
samples/EShopSample/aspnet-core/src/EShopSample.HttpApi.Client/EShopSampleHttpApiClientModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop; using EasyAbp.BookingService;
using EasyAbp.EShop;
using EasyAbp.EShop.Plugins.Baskets; using EasyAbp.EShop.Plugins.Baskets;
using EasyAbp.EShop.Plugins.Booking; using EasyAbp.EShop.Plugins.Booking;
using EasyAbp.EShop.Plugins.Coupons; using EasyAbp.EShop.Plugins.Coupons;
@ -33,7 +34,8 @@ namespace EShopSample
typeof(EShopProductsPluginsFlashSalesHttpApiClientModule), typeof(EShopProductsPluginsFlashSalesHttpApiClientModule),
typeof(PaymentServiceHttpApiClientModule), typeof(PaymentServiceHttpApiClientModule),
typeof(PaymentServiceWeChatPayHttpApiClientModule), typeof(PaymentServiceWeChatPayHttpApiClientModule),
typeof(PaymentServicePrepaymentHttpApiClientModule) typeof(PaymentServicePrepaymentHttpApiClientModule),
typeof(BookingServiceHttpApiClientModule)
)] )]
public class EShopSampleHttpApiClientModule : AbpModule public class EShopSampleHttpApiClientModule : AbpModule
{ {

1
samples/EShopSample/aspnet-core/src/EShopSample.HttpApi/EShopSample.HttpApi.csproj

@ -21,6 +21,7 @@
<PackageReference Include="EasyAbp.PaymentService.HttpApi" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.HttpApi" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.HttpApi" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.HttpApi" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.HttpApi" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.HttpApi" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.Account.HttpApi" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Account.HttpApi" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.Identity.HttpApi" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Identity.HttpApi" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="$(AbpVersion)" />

6
samples/EShopSample/aspnet-core/src/EShopSample.HttpApi/EShopSampleHttpApiModule.cs

@ -1,4 +1,5 @@
using EasyAbp.EShop; using EasyAbp.BookingService;
using EasyAbp.EShop;
using EasyAbp.EShop.Plugins.Baskets; using EasyAbp.EShop.Plugins.Baskets;
using EasyAbp.EShop.Plugins.Booking; using EasyAbp.EShop.Plugins.Booking;
using EasyAbp.EShop.Plugins.Coupons; using EasyAbp.EShop.Plugins.Coupons;
@ -31,7 +32,8 @@ namespace EShopSample
typeof(EShopProductsPluginsFlashSalesHttpApiModule), typeof(EShopProductsPluginsFlashSalesHttpApiModule),
typeof(PaymentServiceHttpApiModule), typeof(PaymentServiceHttpApiModule),
typeof(PaymentServiceWeChatPayHttpApiModule), typeof(PaymentServiceWeChatPayHttpApiModule),
typeof(PaymentServicePrepaymentHttpApiModule) typeof(PaymentServicePrepaymentHttpApiModule),
typeof(BookingServiceHttpApiModule)
)] )]
public class EShopSampleHttpApiModule : AbpModule public class EShopSampleHttpApiModule : AbpModule
{ {

1
samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj

@ -49,6 +49,7 @@
<PackageReference Include="EasyAbp.PaymentService.Web" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Web" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.WeChatPay.Web" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.WeChatPay.Web" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.PaymentService.Prepayment.Web" Version="$(EasyAbpPaymentServiceModuleVersion)" /> <PackageReference Include="EasyAbp.PaymentService.Prepayment.Web" Version="$(EasyAbpPaymentServiceModuleVersion)" />
<PackageReference Include="EasyAbp.BookingService.Web" Version="$(EasyAbpBookingServiceModuleVersion)" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="1.0.0-beta.3" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonXLite" Version="1.0.0-beta.3" />
<PackageReference Include="Volo.Abp.Autofac" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.Autofac" Version="$(AbpVersion)" />
<PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="$(AbpVersion)" /> <PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="$(AbpVersion)" />

4
samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSampleWebModule.cs

@ -1,5 +1,6 @@
using System; using System;
using System.IO; using System.IO;
using EasyAbp.BookingService.Web;
using EasyAbp.EShop; using EasyAbp.EShop;
using EasyAbp.EShop.Plugins; using EasyAbp.EShop.Plugins;
using EasyAbp.EShop.Plugins.Web; using EasyAbp.EShop.Plugins.Web;
@ -80,7 +81,8 @@ namespace EShopSample.Web
typeof(EShopPluginsFlashSalesWebModule), typeof(EShopPluginsFlashSalesWebModule),
typeof(PaymentServiceWebModule), typeof(PaymentServiceWebModule),
typeof(PaymentServiceWeChatPayWebModule), typeof(PaymentServiceWeChatPayWebModule),
typeof(PaymentServicePrepaymentWebModule) typeof(PaymentServicePrepaymentWebModule),
typeof(BookingServiceWebModule)
)] )]
public class EShopSampleWebModule : AbpModule public class EShopSampleWebModule : AbpModule
{ {

Loading…
Cancel
Save